PDA

View Full Version : change font in php



scarfication
September 10th, 2001, 05:53
whats to command line to change the font and colour? (in php)

for example

<?php
$mtime1 = explode(" ", microtime());
$starttime = $mtime1[1] + $mtime1[0];

$mtime2 = explode(" ", microtime());
$endtime = $mtime2[1] + $mtime2[0];
$totaltime = ($endtime - $starttime);
$totaltime2 = number_format($totaltime, 7);
echo "Page Loaded in: ".$totaltime2." sec.";
?>

this script says in how maby seconds mywebsite loads but i wanne change the font en colour, how do i do that?

thnx in advandce..

scarfication

LeX
September 10th, 2001, 08:53
Here's a quick and easy way of doing it...


<FONT color=#123456 face="customfont">
<?php
$mtime1 = explode(" ", microtime());
$starttime = $mtime1[1] + $mtime1[0];

$mtime2 = explode(" ", microtime());
$endtime = $mtime2[1] + $mtime2[0];
$totaltime = ($endtime - $starttime);
$totaltime2 = number_format($totaltime, 7);
echo "Page Loaded in: ".$totaltime2." sec.";
?>
</FONT>


:D

LeX
September 10th, 2001, 08:55
<?php
$mtime1 = explode(" ", microtime());
$starttime = $mtime1[1] + $mtime1[0];

$mtime2 = explode(" ", microtime());
$endtime = $mtime2[1] + $mtime2[0];
$totaltime = ($endtime - $starttime);
$totaltime2 = number_format($totaltime, 7);
echo "<FONT color=#123456 face='customface'>
Page Loaded in: ".$totaltime2." sec.</FONT>";
?>

Will this work? :confused:

[ADD]
Guess not... :o

scarfication
September 10th, 2001, 10:24
THNX! GUYS!