Bug #17342 Updated: include() fails to open URLs

From: Date: Wed, 22 May 2002 12:07:19 +0000
Subject: Bug #17342 Updated: include() fails to open URLs
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-8209@lists.php.net to get a copy of this message
ID: 17342 Updated by: php@pgregg.com Reported By: php@pgregg.com Status: Feedback Bug Type: *URL Functions Operating System: Windows 2000 Server PHP Version: 4.2.1 New Comment: Hi Derick, Sorry bout that... Installed php4-win32-200205221000.zip (latest) and the problem persists. there is an additional error message now: Warning: main("http://aorr3/oss/ssi/header.html") - Invalid argument in F:\web\source\resolutions.php on line 6 Warning: Failed opening 'http://aorr3/oss/ssi/header.html' for inclusion (include_path='.;f:\web\source') in F:\web\source\resolutions.php on line 6 First 7 lines of code are below: <?php #print_r(get_cfg_var("allow_url_fopen")); #print_r(ini_get("allow_url_fopen")ini_get("allow_url_fopen")); include ("http://aorr3/oss/ssi/header.html"); (7 line blank) Cheers, Paul. Previous Comments: ------------------------------------------------------------------------ [2002-05-22 07:43:09] edink@php.net Poul I think Derick was referring to 4.3.0-dev (http://snaps.php.net/win32/php4-win32-latest.zip). FYI I can reproduce the problems you're having. ------------------------------------------------------------------------ [2002-05-22 07:39:15] derick@php.net hmm... I thought I wrote 4.3.0 snapshots :) that's the things not marked STABLE @ snaps.php.net/win32 :) Can you try again? Derick ------------------------------------------------------------------------ [2002-05-22 07:33:11] php@pgregg.com Hi Derick, Noper, just tried it with 4.2.2-dev and same symptoms persist. Cheers Paul. ------------------------------------------------------------------------ [2002-05-21 15:53:55] derick@php.net Hey Paul, can you verify if it works with the 4.3.0 snapshots (from snaps.php.net/win32)? It might have been fixed by the new streams implementation. Derick ------------------------------------------------------------------------ [2002-05-21 15:52:08] php@pgregg.com Platform: W2K Server fresh install, IIS5.0, MySQL, PHP 4.2.1 and Oracle 8.1.7 Client. PHP installed as an ISAPI filter and tested working, is also loading the php_oci8.dll and talking well to oracle. However, a simple: include ("http://localhost/test.txt"); fails everytime regardless of the URL supplied. I have verified that DNS, etc is working and IE on the server can see the URLs ok. php.ini has allow_url_fopen = On, and this is verified through phpinfo(), get_cfg_var("allow_url_fopen") and ini_get("allow_url_fopen") Error message supplied by PHP is: Warning: Failed opening 'http://aorr3/oss/ssi/header.html' for inclusion (include_path='.;f:\web\source') in F:\web\source\resolutions.php on line 6 Having include_path undefined in php.ini or set doesn't matter (tho it should not affect url opens). Cheers Paul, aka Qube ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17342&edit=1

« previous php.bugs (#8209) next »