CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2005
    Posts
    31

    Question 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
    }
    ?>

  2. #2
    Join Date
    May 2004
    Location
    MN / NJ, United States
    Posts
    768

    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
  •  





Click Here to Expand Forum to Full Width

Featured