[thelist] PHP & Fopen() errors....

Paul Bennett paul at teltest.com
Tue Mar 11 16:31:02 CST 2003


Christopher Ditty wrote:

>I asked this question on the PHP list and didn't get any feedback. 
>Hopefully someone here can help.
>
>I seem to be having a problem with fopen on apache 1.3.27/php 4.3 
>servers.  Scripts that worked before and on other servers do not work
>on 
>this one.  
>
>Warning: fopen(XXXXXXXXXXXXXXXXXXXXXX) [function.fopen]: failed to
>create 
>stream: Invalid argument in /path/to/script/import.php on line 30
>
>This is the code around line 30.....
>$local_file = $feed;
>$fp = fopen($local_file, "r");
>
>This is being pulled from a http site. The site and the link are both
>correct and working. Replacing 
>$feed with the actual url doesn't help.  I have looked over the manual
>and the only thing I could 
>find similar to this is in the comments. 
>
Chris, there is a php 4 bug list at:
http://www.zend.com/lists/php-dev/200301/msg00666.html
There are a number of active bugs for the fopen() function. Seeing as 
you are opening a url for parsing / saving / whatever, could this 
actually be a php engine bug related to you?
(Bug report below)
Number   Status      Description

6701 	Open    Use of http_proxy for fopen("http:// ...

I have not yet been able to find a more detailed description of the bug and any possible workarounds yet...

-- 
 ------------------------------
	Paul Bennett						
	Internet Developer				
	Teltest Electronic Design		
 ------------------------------			
Email: paul at teltest.com				
Phone: 64 4 237 4557					
Web: http://www.teltest.com		
Wap: http://wap.teltest.com			




More information about the thelist mailing list