Re: Show output of program in realtime on website
| From: | Christian Reiniger | Date: | Wed, 10 Jan 2001 16:52:27 +0000 |
| Subject: | Re: Show output of program in realtime on website | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-33699@lists.php.net to get a copy of this message | ||
On Wednesday 10 January 2001 13:11, Stefan Scherf wrote:
> maybe the problem is in the c-programm "main":
>
> int main() {
> int i;
> for(i=0;i<10;i++) {
> printf("Output: %i\n",i);
The "\n" triggers a buffer flush if I'm not completely mistaken, so there
shouldn't be a problem
> sleep(1);
> }
> return;
Your compiler should throw an error here - main is declared as "int" but
doesn't return a value
> }
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Those who will not reason, are bigots,
those who cannot, are fools,
and those who dare not, are slaves.
- George Gordon Noel Byron (1788-1824), [Lord Byron]