Casey Chu wrote:
>
> Yeah, try testing. Maybe something like this:
> <?php
> $form = "<form action=' ' method='post'><textarea
> name='code'></textarea><br /><button
> type='submit'>Execute</button></form>";
> if ($_POST['code']) {
> echo "<div style='border: 1px'>";
> $time_start = microtime_float();
> eval($_POST['code']);
> $time_end = microtime_float();
> echo "<br />Loading took: ". $time_end - $time_start. '</div>';
> }
> echo "<div style='float: left'>$form</div>";
> // Note: This script is extremely dangerous and is not tested.
> ?>
>
>
under php5 use can use microtime(1) for timestamps
--
View this message in context:
http://www.nabble.com/Script%27s-length%2C-echo%2C-and-execution-speed-tf2875055.html#a8037132
Sent from the PHP - General mailing list archive at Nabble.com.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php