ID: 12801
Updated by: derick
Old Status: Open
Status: Bogus
Bug Type: Filesystem function related
Operating System: win98
PHP Version: 4.0.6
New Comment:

This is intended. The filehandle is closed after the passthru() call.
You need to reopen it. From the manual:

 The file pointer must be valid, and must point to a file successfully opened by 
fopen(), popen(), or fsockopen(). The file is closed when fpassthru() is done reading 
it (leaving fp useless).

Previous Comments:

[2001-08-16 19:19:48] [EMAIL PROTECTED]

Look at the following script-file:

$fp1=fopen("project1.txt", "r");
some text

You should get twice the content op project1.txt, seperated by "some text", but I get 

contents of project1.txt
some text 

Warning: 1 is not a valid File-Handle resource in e:\documenten\scripts\test 
area\project11.php on line 10


Edit this bug report at

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to