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
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
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
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
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
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
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 (
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
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
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
* 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 Im 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
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
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
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
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
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
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
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
18 matches
Mail list logo