Re: [PHP] Timeout while waiting for a server->client transfer to start (large files)

2008-02-04 Thread szalinski
Well thanks again, but I already know what the problem is, it is the response headers being added to the ouput file. I just tried with a different code and it seems to output the file ok, so i must be going wrong somewhere in the order in which i output headers and so on. i'm gonna keep w

Re: [PHP] Timeout while waiting for a server->client transfer to start (large files)

2008-02-04 Thread Richard Lynch
On Fri, February 1, 2008 7:45 pm, szalinski wrote: > On Thu, 31 Jan 2008 07:13:55 -, Per Jessen <[EMAIL PROTECTED]> > wrote: > Well I got it to work, much thanks to Richard Lynch, but now everytime > I > download a file, it is corrupt. For example, when I download small > .rar > file, just to t

Re: [PHP] Timeout while waiting for a server->client transfer to start (large files)

2008-02-03 Thread szalinski
Thanks I have already another post dealing with this issue. (check newsgroup for Server to client file transfer always corrupt). I had figured out the problem that was corrupting the file, it is the response headers that are being added to the file when it is downloaded, and i don't know

Re: [PHP] Timeout while waiting for a server->client transfer to start (large files)

2008-02-01 Thread Casey
On Feb 1, 2008, at 5:45 PM, szalinski <[EMAIL PROTECTED]> wrote: On Thu, 31 Jan 2008 07:13:55 -, Per Jessen <[EMAIL PROTECTED]> wrote: Richard Lynch wrote: Your script is reading the whole file, 64 measly bytes at a time, into a monstrous string $tmp. Then, finally, when you've load

Re: [PHP] Timeout while waiting for a server->client transfer to start (large files)

2008-02-01 Thread szalinski
On Thu, 31 Jan 2008 07:13:55 -, Per Jessen <[EMAIL PROTECTED]> wrote: Richard Lynch wrote: Your script is reading the whole file, 64 measly bytes at a time, into a monstrous string $tmp. Then, finally, when you've loaded the whole [bleep] file into RAM in $tmp, you just echo it out, right

Re: [PHP] Timeout while waiting for a server->client transfer to start (large files)

2008-01-30 Thread Per Jessen
Richard Lynch wrote: > Your script is reading the whole file, 64 measly bytes at a time, into > a monstrous string $tmp. > > Then, finally, when you've loaded the whole [bleep] file into RAM in > $tmp, you just echo it out, right? > > Don't do that. > > :-) > > while (!feof($fp)){ > echo fre

Re: [PHP] Timeout while waiting for a server->client transfer to start (large files)

2008-01-30 Thread Richard Lynch
On Tue, January 29, 2008 12:45 pm, Barney Tramble wrote: > I have a script that I am trying to figure out to allow a remote file > to > be sent to a client's browser. It works ok for small files, but it > keeps > timing out for large files. I don't think it should even take as long > as > it does (

Re: [PHP] Timeout while waiting for a server->client transfer to start (large files)

2008-01-29 Thread Chris
Barney Tramble wrote: Hey I have a script that I am trying to figure out to allow a remote file to be sent to a client's browser. It works ok for small files, but it keeps timing out for large files. I don't think it should even take as long as it does (i.e. about 10seconds) before it pops u

Re: [PHP] Timeout for fopen ?

2007-10-14 Thread Gal
You can use the CURL module, which has support for timeout. http://www.php.net/manual/en/ref.curl.php debussy007 wrote: > Hello, > > I want to use "fopen" to open an URL, but is it possible to add a timeout ? > This to avoid that fopen slows down my script ? > Because if site I access takes 10 s

Re: [PHP] Timeout for fopen ?

2007-10-13 Thread heavyccasey
You could use Javascript/XMLHTTP to call a PHP script that opens the file. On 10/13/07, debussy007 <[EMAIL PROTECTED]> wrote: > > Hello, > > I want to use "fopen" to open an URL, but is it possible to add a timeout ? > This to avoid that fopen slows down my script ? > Because if site I access take

Re: [PHP] timeout question

2003-10-06 Thread Curt Zirzow
* Thus wrote David Coleman ([EMAIL PROTECTED]): > I have a PHP page that for some reason is taking an ungodly long time to > execute. I suspect that this is simply b/c I’m running Apache 1.3 / > MySQL 4.013-nt, PHP 4, Zend studio 3.0, and MySQL GUI on a 266 MhZ win2K > server. (Yes people, I know

RE: [PHP] timeout question

2003-10-06 Thread Vail, Warren
http://www.php.net/manual/en/function.set-time-limit.php Warren Vail -Original Message- From: David Coleman [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 11:47 AM To: [EMAIL PROTECTED] Subject: [PHP] timeout question I have a PHP page that for some reason is taking an ungod

Re: [PHP] Timeout during SMTP operation.

2003-01-02 Thread Michael J. Pawlowsky
Am I happy I'm not your hosting provider! :-) They will probably flip if they see you send out 7000 e-mails. Anyways crontab -e from a shell allows you to create a cronjob. from a shell just "man crontab" Cheers, Mike *** REPLY SEPARATOR *** On 02/01/2003 at 4:39 PM

Re: [PHP] Timeout during SMTP operation.

2003-01-02 Thread gilrain
Okay, that does sound more efficient. I'd love to give this a try, but to be completely honest I haven't done much from the shell other than basic commands and managing MySQL. I do know that my host allows me to use crontab, though, and most other common *nix programs. Could you (or any of the oth

Re: [PHP] Timeout during SMTP operation.

2003-01-02 Thread Chris Hewitt
gilrain wrote: Hi all, I've just finished a PHP/MySQL mailing list. Basically, I'm having problems with my sendmail function. It takes an array of e-mail addresses ($addresses) and loops through it, e-mailing each one using an SMTP class I found (the only identifying comment in it is "SMTP Class

Re: [PHP] timeout

2002-10-04 Thread Marek Kilimajer
Is this true? I haven't heard about this. I thought it's the browser that closes conection a thus terminates the script, but this can be avoided using ignore_user_abort(false); Rasmus Lerdorf wrote: >If you set_tiome_limit(0) your script will not be timed out as long as it >keeps sending somet

Re: [PHP] timeout

2002-10-04 Thread lallous
so do you suggest that I send space-characters and then do a flush() ? Thanks, Elias "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > If you set_tiome_limit(0) your script will not be timed out as long as it > keeps sending something every now

Re: [PHP] timeout

2002-10-04 Thread Rasmus Lerdorf
If you set_tiome_limit(0) your script will not be timed out as long as it keeps sending something every now and then. If it just sits there without outputting anything, then Apache will kill it off eventually. On Fri, 4 Oct 2002, lallous wrote: > Hello, > > > if i set set_time_limit(0) will my