PHP readfile Error

TRiN

New Member
#1
OK I'm quite new to all this server stuff so bear with me. I have changed from Apache2 to lsws and finding it great so far. My only problem is this error I'm getting from PHP when trying to download a file.

I have an file upload site so you can see my problem :D

PHP:
2008-01-05 08:52:36.389 [NOTICE] [122.125.XXX.XXX:1726-0#US1] [STDERR] PHP Warning:  readfile() [<a href='function.readfile'>function.readfile</a>]: URL file-access is disabled in the server configuration in /usr/local/lsws/US1/html/filedown.php on line 30
Any help is great.
 

TRiN

New Member
#3
need to change "allow_url_fopen" PHP configuration to "On" in the php.ini.

However, it is not recommended to stream files through PHP, check
http://www.litespeedtech.com/support/forum/showthread.php?t=1576
Ahh of course thanks very much. Working on it at 3AM is quite hard :D

The internal redirect is interesting. I will have a play around with it. Thanks again.

EDIT:

Ahh that wasn't so hard either. Turned fopen off again and used the internal redirects. Removes the large memory stamp that has always haunted me. Thanks LSWS!
 
Last edited:
Top