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

Posted by Ike on 10/23/74 11:43

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);
?>

 

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

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