Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
这是一种计数直到100 php的方法,但请确保您选择正确的标签,您的问题当前标记为JavaScript问题
我知道这与JavaScript有关,但您的问题甚至都不包含一个JavaScript
<?php while (1){ for ($x = 0; $x <= 100; $x++) { echo "The number is: $x <br>"; sleep(1); } } ?>
Here is a way to count until 100 in PHP but please make sure you choose your tags right, your question is currently marked as a javascriptquestion
I know it is related to javascript but your problem doesn't include even a piece of javascript
我强烈建议cron作业用于定期执行。
cron作业
但是看起来像是一些学校,甚至可能是为了有趣的任务。因此,上面@ramsey的答案就足够了。
(不要忘记杀死创建的无限过程,而(1))
创建的无限过程,而(1)
I would strongly suggest CRON JOBS for periodic script execution.
CRON JOBS
But it looks like some school or maybe even for fun task.So the Answer from @Ramsey above should be sufficient.
(dont forget to kill the infinite process created by while (1))
while (1)
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(2)
这是一种计数直到100 php的方法,但请确保您选择正确的标签,您的问题当前标记为JavaScript
问题
我知道这与JavaScript有关,但您的问题甚至都不包含一个JavaScript
Here is a way to count until 100 in PHP but please make sure you choose your tags right, your question is currently marked as a javascript
question
I know it is related to javascript but your problem doesn't include even a piece of javascript
我强烈建议
cron作业
用于定期执行。但是看起来像是一些学校,甚至可能是为了有趣的任务。
因此,上面@ramsey的答案就足够了。
(不要忘记杀死
创建的无限过程,而(1)
)I would strongly suggest
CRON JOBS
for periodic script execution.But it looks like some school or maybe even for fun task.
So the Answer from @Ramsey above should be sufficient.
(dont forget to kill the infinite process created by
while (1)
)