k***@googlemail.com
2006-10-20 08:48:56 UTC
Hi folks,
I've got a small application that displays a word document using :
$fp = readfile($full_fn, "r");
fpassthru ($fp);
(after setting content headers etc and ensuring $full_fn is correct)
It works fine but I get a warning everytime saying:
PHP Warning: fpassthru(): supplied argument is not a valid stream
resource in....
I'm a bit concerned about this warning. $full_fn is the full path to
the file (with the filename). The files are all very small. Any
suggestions on what else I might have done to cause this warning? I
know I can suppress the warning, I'm just confused as to why I'm
getting a warning when the file is quite obviously opening.
Thanks in advance for any suggestions!
I've got a small application that displays a word document using :
$fp = readfile($full_fn, "r");
fpassthru ($fp);
(after setting content headers etc and ensuring $full_fn is correct)
It works fine but I get a warning everytime saying:
PHP Warning: fpassthru(): supplied argument is not a valid stream
resource in....
I'm a bit concerned about this warning. $full_fn is the full path to
the file (with the filename). The files are all very small. Any
suggestions on what else I might have done to cause this warning? I
know I can suppress the warning, I'm just confused as to why I'm
getting a warning when the file is quite obviously opening.
Thanks in advance for any suggestions!