On Wed, Aug 13, 2003 at 09:51:39PM -0400, Randy L Johnson Jr wrote:
>
> I have a function that makes a connection to a live datafeed website and
> downloads data via a pfsockopen() statement. After awhile the data stops
> feeding but the connection stays open. when the data stops I want to exit
> out of the function and have the function run again
Pseudo code...
while (1) {
pfsockopen(... blah blah ...);
while (not end of file) {
get the line and do what you want with it...
}
}
--Dan
--
FREE scripts that make web and database programming easier
http://www.analysisandsolutions.com/software/
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php