我得到这个错误,我不知道为什么。
Fatal error: Maximum execution time of 30 seconds exceeded in E:\web\autoopti\thanks.php on line 65
我为 PHP 脚本编写的代码是:
<?php
$key = 129;
$email = $_REQUEST["payer_email"];
$first = $_REQUEST["first_name"];
$last = $_REQUEST["last_name"];
$acode = $_REQUEST["hash"];
$txt = $email . "|" . $email . "|" . $first . "|" . $last . "|" . $acode;
$outtxt = '';
for($i=0;$i<strlen($txt);)
{
for($j=o;$j<strlen($key);$j++,$i++)
{
$outtxt .= $txt{$i} ^ $key{$j};
}
}
echo "thanks";
?>
错误消息所指的行是:
$outtxt .= $txt{$i} ^ $key{$j};
所以,我猜这行代码完成它的工作时间太长了。有人可以帮我解决这个问题吗?
谢谢