Собсно код:
PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- <?PHP
- 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
- 'Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.3',
- );
- out('starting...');
- $p = 0;
- $f2 = 0;
- for($i = 1; $i < 79000; $i++)
- {
- {
- }
- {
- out($p.'%');
- $f2 = 1;
- }
- {
- out('event - stop from file!');
- out('this script will continue, after you remove the stop file');
- out('5 sec sleeping!');
- while(true)
- {
- out('sleep');
- }
- }
- if($code == 200)
- {
- out('item '.$i);
- }
- }
- ?>