i have a page and this is its source code
<table width="100%">
<tr>
<td>[code=php]<? include("prueba.php"); ?>
</td>
</tr>
<tr>
<td>
<? include("footer.php"); ?>
</td>
</tr>
</table>
[/code]
prueba.php
[code=php]
<?
//im not gonna put the code but it simply makes a search in a big database an return some results
?>
[/code]
and
footer.php
[code=php]
<?
function getmicrotime(){
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
$initime=getmicrotime();
echo "PHP version: ".phpversion();
echo "<br>";
echo "MySQL version: ".mysql_get_client_info();
echo "<br>";
echo "Web server: ".php_sapi_name();
echo "<br>";
echo "Operative system: ".php_uname();
echo "<br><br>";
$totaltime=getmicrotime()-$initime;
echo "The page took $totaltime sec. to render";
?>
[/code]
here is the problem,
if i paste footer.php's code into prueba.php's code it gives me the right time but if i do like this way, including the files it gives something like: "The page took 0.02254654 secs to render" this is right but if i refresh it gives me "The page took 6.40153884888E-005 secs to render";
what's wrong?
thanks for helping