我如何将 php 代码放入我的页面来执行此操作 - “5 秒后显示链接”。
我只想要 php 中的整个代码。
例如 - 在 php 中:
if(5 Seconds later )
{
`echo'<a href='google.com'>click here ..</a>';`
}
最佳答案
你可以 sleep 然后输出链接
<?php
flush(); //make sure all other html is written to the client
sleep(5);
echo'<a href="google.com">click here ..</a>';
关于php - 您将在 5 秒后在 PHP 中重定向?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18541494/