RE: [PHP] remote call - no return

From: Date: Wed, 21 May 2003 20:53:44 +0000
Subject: RE: [PHP] remote call - no return
Groups: php.general 
Request: Send a blank email to php-general+get-148444@lists.php.net to get a copy of this message
Yes. Well, here is the scipt that is called to return the id ... maybe it does not return: [snip] $file = "v.txt"; $data = $QUERY_STRING; function writevars($data,$file) { $fp = fopen ($file,"w"); // opens file for reading + writing if ($fp) //if the file exists (should always) { fputs($fp, $data); } fclose($fp); } writevars($data,$file); $id = md5(rand(2,12)); ==> return $id; [snip] See anything? Thomas >So you are saying that >if ($f = fopen($remote_path,'r')) >works because you are getting to the while loop but fgets is not returning anything, whether you use >the loop or not? If I have that correct then perhaps you need to make sure that the file actually has >data in it. .Robbert van Andel -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!

« previous php.general (#148444) next »