Script Execution Time Help!!!
Posted: Wed Oct 01, 2003 8:28 pm
Hi, I have this at the top of the page:
And at the bottom:
How can I add in <font color> tags to the echo part of it? Because it keeps giving me parse errors when I change it to :
Also, is there a tutorial I can read so I know next time how to add <font> tags to echo?
?>
Code: Select all
<?
$m_time = explode(" ",microtime());
$m_time = $m_time[0] + $m_time[1];
$starttime = $m_time;
?>Code: Select all
<?
$round = 3;// The number of decimal places to round the micro time to.
$m_time = explode(" ",microtime());
$m_time = $m_time[0] + $m_time[1];
$endtime = $m_time;
$totaltime = ($endtime - $starttime);
echo "-[Script Execution Time: ". round($totaltime,$round) ." Seconds]-";
?>Code: Select all
<?php
echo "<font color="#FFFFFF">-[Script Execution Time: ". round($totaltime,$round) ." Seconds]-</font>";
?>?>