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

Christopher Ditty cditty at mlgw.org
Tue Mar 11 13:39:12 CST 2003


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.  The web host recently upgraded both php and apache.   Below
is 
the error.....

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.  

Anyone?

Chris

------------------------------------------------------------------------------
03/11/2003, 02:52:54 PM
This e-mail and any attachments represent the views and opinions of only the sender and are not necessarily those of Memphis Light, Gas & Water Division, and no such inference should be made.

==============================================================================



More information about the thelist mailing list