2

I have a window 2003 dedicated server, i have installed xampp on it.

So i tried to pass download using PHP script such as zina from pancake.org, phpIndexer php functions such as fread, fgets, file, file_get_contents;

If i download let say from apache mod_dirlisting, the speed is 1mbps however on same server with using php, the speed dropped to 30kbps.

Any idea what causing it? should i tweak any php.ini to reflect?

newbieUser
  • 21
  • 2

1 Answers1

0

You could try to use readfile function (see PHP doc). fread or file_get_contents read file to memory then you send it by print or echo, readfile reads the file directly to the output buffer, should be faster.

Serty Oan
  • 1,737
  • 12
  • 19