是否通过PHP页面加载链接而不是直接从HTML加载处理大量流量时显着较慢? [关闭]

As opposed to changing 100 or so link on the index page, I want to load the link from a .php page like the following:

link.php would have:

<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <title></title>
    <meta http-equiv="refresh" content="0; url=http://www.mywebsite.com">
</head>
<body>
</body>
</html>

So instead of having a link directly in index.php, I would load everything from link.php

I'm worried though that because I'm dealing with a lot of traffic (10,000-50,000 clicks/day) It might cause significant slowness as opposed to having the direct links on my index page.

I think what you want is a way for the repeated links in index.php to be generated automatically from a single definition, right? You can do that without involving a second file, or any redirects:

index.php:

<html>
<?php $mylink = '<a href="http://example.com">'; ?>
... 

<body>
Boy, I really like <?php print $mylink; ?>this</a> link. Everyone should 
visit it, just <?php print $mylink; ?>click here</a>. Etc.

</body>
</html>

Better yet: Define a function that generates the complete link for you:

<?php
function mylink($text)
{
   print '<a href="http://example.com">'.$text.'</a>';
}
?>
<html>
....

Take a look at <?php mylink("this link!"); ?>