ID: 11396 Updated by: jmoore Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Scripting Engine problem Operating system: PHP Version: 4.0.5 Assigned To: Comments: 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("http://www.bunnynet.org"); ?> 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 'http://www.bunnynet.org' 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 server. 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 enabled.) --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=11396&edit=2 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]