Bug #11396 Updated: URL fopen() wrappers don't work on include()

From: Date: Tue, 12 Jun 2001 19:30:29 +0000
Subject: Bug #11396 Updated: URL fopen() wrappers don't work on include()
Groups: php.dev 
Request: Send a blank email to php-dev+get-57095@lists.php.net to get a copy of this message
ID: 11396 Updated by: jmoore Reported By: mwhite@madriver.k12.oh.us 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] mwhite@madriver.k12.oh.us 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

« previous php.dev (#57095) next »