如何在PHP中设置持续时间 [英] How to set Time duration in PHP
问题描述
我有一个代码,其中有一些文件可以下载。现在我想在持续时间下载链接显示下载文件之后设置一个持续时间..........
例如:abc。 pdf文件,可以下载。当用户点击abc.pdf时,msg将显示等待秒,其中已经设置的持续时间开始,例如:5秒。之后5sec下载链接将显示点击该abc.pdf文件将下载。
尝试
http://networking.mydesigntool.com/viewtopic.php?tid=441&id=31 [ ^ ]
http://forums.devshed.com/php-development-5/calculating-time-difference-in-seconds-63950.html [ ^ ]
http:/ /www.gfxvoid.com/forums/showthread.php?28576-PHP-Time-Date-Display [ ^ ]
包含在HTML页面的HEAD部分这一行:
< META HTTP-EQUIV =' 刷新' 内容 =' 3; URL =downloadURL>
例如,请参阅我的网站 http://catalogofsoftware.com/ [ ^ ] < br $>
echo< META HTTP-EQUIV =''refresh''content =''3; URL =。
行[ '' Primary_Download_URL '']。 '' > 中;
I have a code on which there is some file which can be download. Now now i want to set a time duration after that duration download link will show to download a file..........
example: abc.pdf file which can be download. When user click on abc.pdf.then msg will show "wait for seconds " in that a time duration which already set is start eg: 5sec.after that 5sec download link will show click on that abc.pdf file will download.
Try
http://networking.mydesigntool.com/viewtopic.php?tid=441&id=31[^]
http://forums.devshed.com/php-development-5/calculating-time-difference-in-seconds-63950.html[^]
http://www.gfxvoid.com/forums/showthread.php?28576-PHP-Time-Date-Display[^]
include in HEAD section of HTML page this line:
<META HTTP-EQUIV='refresh' content='3; URL="downloadURL">
for example see my site http://catalogofsoftware.com/[^]
echo"<META HTTP-EQUIV=''refresh'' content=''3; URL=".
row[''Primary_Download_URL'']."''>";
这篇关于如何在PHP中设置持续时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!