Re: php conditional loop question
| From: | Analysis & Solutions | Date: | Thu, 14 Aug 2003 02:05:09 +0000 |
| Subject: | Re: php conditional loop question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-159515@lists.php.net to get a copy of this message | ||
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