Welcome Guest, Not a member yet? Register   Sign In
read_file, file_exists return nothing
#4

[eluser]attos[/eluser]
Did you mean readfile() instead of read_file()?

I had the same problem with readfile() returning an empty file (zero length). I solved it using:

Code:
$fp = fopen($path, 'rb');
fpassthru($fp);

readfile() worked in my development environment (WinXP + xampp), but failed under FreeBSD and Apache.


Messages In This Thread
read_file, file_exists return nothing - by El Forum - 09-11-2008, 03:55 PM
read_file, file_exists return nothing - by El Forum - 09-11-2008, 04:16 PM
read_file, file_exists return nothing - by El Forum - 09-12-2008, 12:25 PM
read_file, file_exists return nothing - by El Forum - 09-12-2008, 02:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB