RE: [PHP] remote call - no return

From: Date: Wed, 21 May 2003 20:36:26 +0000
Subject: RE: [PHP] remote call - no return
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-148443@lists.php.net to get a copy of this message
You need to break out of the loop as soon as you have your ID... At 22:16 21.05.2003, Jay Blanchard said: --------------------[snip]-------------------- >try this.... >function call_remote($remote_path) >{ > if ($f = fopen($remote_path,'r')) > { > if(!feof($f)) > { > $line = fgets($f,100); > $id = $line; ==> if ($id) break; > } > } > return $id; > fclose($f); >} > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php --------------------[snip]-------------------- -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#148443) next »