You are here: Re: sporadic execution « PHP Programming Language « IT news, forums, messages
Re: sporadic execution

Posted by ZeldorBlat on 11/18/87 11:43

Ike wrote:
> Can anyone tell me, offhand, why the following might work on some servers
> and not others? I am certain it has somthing to do with a setting in
> php.ini, just not sure what that setting is. One some servers, I see nothing
> at all. Anyone have any ideas here? Thanks, Ike
>
> <?php
> set_time_limit(0);// to overcome maxexecution time
> $sep = "ofaLlTherCrzyThInggsIhaveayeard";
>
> $file = "./data.txt";
> header("Content-Type: multipart/x-mixed-replace; boundary=$sep");
> do {
> print "Content-Type: text/plain\n\n";
> readfile($file);
> print "\n--$sep\n";
> flush();
> $mt = filemtime($file);
> do {
> sleep (1);
> //we won't output the same data twice.
> clearstatcache();
> } while ($mt == filemtime($file));
> } while (1);
> ?>

Check that errors are either being displayed or logged to a file. Run
the page. See what the error (if any) is and let us know.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация