以下为引用的内容: <?php echo "<font style=\"color:blue;font-size:10px;font- family:verdana;\">Free Scripts By: <a href=\"\" target=\"_blank\" title=\"Free Scripts By: phperz.com\"></font></a>";?> |
以下为引用的内容: <html> <head> <title>webjx.com</title> </head> <body text="#000000"> <center> <table width="500" border="3"> <tr> <td width="140" height="400" valign="top"> <p align="center"> <a href='index.php'>home[/url] <a href='index.php?p=Page1'>page 1[/url] <a href='index.php?p=Page2'>page 2[/url] </p></td> <td width="360" height="400" valign="top"> <p> <? function index() { echo "<p align=center>Welcome to this tutorial Here you can find funny tricks</p>"; } |
以上文件必须保存为index.php
高级分页的代码:
以下为引用的内容: <html> <head> <title>webjx.com</title> </head> <body text="#000000"> <center> <table width="500" border="3"> <tr> <td width="140" height="400" valign="top"> <p align="center"> <a href='index.php'>home[/url] <a href='index.php?action=contact_us'>page 1[/url] <a href='index.php?action=link_us'>page 2[/url] </p></td> <td width="360" height="400" valign="top"> <p> <? if (isset($_GET['action'])) $PAGE = $_GET['action']; else $PAGE = 'home'; switch ($PAGE) { //1- index case 'home': include ('incl/home.php'); break; //2-contact form case 'contact_us': include ('incl/contact_us.php'); break; //3-Link us case 'link_us': include ('incl/link_us.php'); break; default: echo '<p align=center>Error 404! the page you request doesn t exist or as been temporarely unaccessible</p>'; break; } ?> </p> </td> </tr> </table> </center> </body> </html> |
以下为引用的内容: <?php echo ("Page Took :"); $load = microtime(); print (number_format($load,2)); echo (" Sec To Load."); ?> |