ID: 11396
Updated by: jmoore
Old-Status: Open
Status: Closed
Bug Type: Scripting Engine problem
Operating system: 
PHP Version: 4.0.5
Assigned To: 

This is the expected behaviour, include and require are lang consturcts not functions, 
use readfile for the functionality you want.

- James

Previous Comments:

[2001-06-11 05:45:46] [EMAIL PROTECTED]
This snippet of code works on FreeBSD, but not Windows 2000:

<? include("";); ?>

On FreeBSD it works as expected, PHP will connect to the remote host, fetch the page 
and include it in the page it's currently sending to the client.

On Windows 2000 I get the following error:

Warning: Failed opening '' for inclusion (include_path='') in 
c:apachehtdocstest.php on line 14

I am using PHP 4.0.5 on the FreeBSD server and PHP 4.0.6 RC3 on the Windows 2000 

My php.ini is identical to php.ini-dist in 4.0.6 RC3, and is located in C:WINNT, which 
is the path that phpinfo() shows that PHP is looking for it in. ("allow_url_fopen" IS 


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found 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