PHP Classes
elePHPant
Icontem

File: samples/slow.php

Recommend this page to a friend!
  Classes of Paul Fryer  >  PHP Sandbox  >  samples/slow.php  >  Download  
File: samples/slow.php
Role: Auxiliary data
Content type: text/plain
Description: A sample script that runs longer than the time limit
Class: PHP Sandbox
Execute external PHP scripts in a separate process
Author: By
Last change: Shows output to prove it's working
Date: 8 years ago
Size: 182 bytes
 

 

Contents

Class file image Download
<?php
echo 'Starting infinate loop<br/>';

$i = 0;
while (true) {
	if($i/100 == intval($i/100)){
		echo '.';
	}
	
	if($i > 24700){
		$i = 0;
		echo '<br/>';
	}
	$i++;
}