|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9226 Include URL; fopen Url
Submitted: 2001-02-12 08:57 UTC Modified: 2001-05-27 23:35 UTC
From: PSaile at hww-hamburg dot de Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4.0.4pl1 OS: Linux SuSE 7.0
Private report: No CVE-ID: None
 [2001-02-12 08:57 UTC] PSaile at hww-hamburg dot de
This statement 
 $fp = fopen("", "r");
produce this Error
  Warning: fopen("","r") - Bad file
  in /usr/local/httpd/htdocs/web_interface/test.php3 
  on line 22

I have search for this Error an find this.
Then I trie the inclusion and I get the same Error Message like below. Is there any solution for this error?

just upgraded to php-4.0.3pl1-3 via the 
rpm on a RedHat 7.0 server. 

Now it seems that my includes for URL's 
does not work anymore. I put the allow_url_fopen in the php.ini and still no luck.. 

Any one else run into this problem? 

PS. the URL is there..i checked ;) 

Here is the message ... 

Warning: Failed opening '' for inclusion include_path='.:/usr/share/php') in /home/httpd/html/stuff.php on line 16 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-27 23:35 UTC]
Should be fixed in PHP 4.0.6 (not released yet) so please
try that when it is released. If problem still exists with
it, reopen this bug report.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Mar 21 05:03:38 2023 UTC