-
September 10th, 2005, 02:37 PM
#1
Tool to see how fast php
Is there a tool to see how fast php page change into html ?
which one is faster between this code ?
Code 1 :
<?php
for ($TA=0;$TA < 500;$TA++) {
echo "<A href='TestPage.php?page={$TA}'>{$TA}</A>";
}
?>
or
Code 2 :
<?php
for($TA=0;$TA<500;$TA++){
?>
<A href="TestPage.php?page=<?php echo $TA;?>><?php echo $TA;?></A>
<?php
}
?>
-
September 10th, 2005, 07:25 PM
#2
Re: Tool to see how fast php
You haven't even tried either of them, have you? The line:
Code:
<A href="TestPage.php?page=<?php echo $TA;?>><?php echo $TA;?></A>
would yield:
HTML Code:
<A href="TestPage.php?page=1>1</A>
Looks to be missing a ". As for the answer to your question, do a litle research. It's all based on your server and all, just look into the stuff.
*9-11-01* Never Forget; Never Forgive; Never Relent!
"If we ever forget that we're one nation under God, then we will be a nation gone under." - Ronald Reagan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|