| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
  [2002-05-21 15:52 UTC] php at pgregg dot 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             | 
    |||||||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 02:00:01 2025 UTC | 
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.a) This bug will remain in 4.3.0? It's not a bug, it's a feature request. b) Aside from php.net/include, any other places to add docs? (include|require)_once c) Same error regardless of allow_url_fopen value in php.ini? No, fopen("http://somewhere/"); works for me on win32. Doesn't it for you? d) Why can't windows include remote files? Technical issue, ask zeev to explain. Something along the line that a socket != fd on win32 and that flex only supports fd's. Since it's documented already, it's not critical anymore IMHO.