1

Is it possible? E.g. A script every minute write a word in a file (without the page opened in a browser).

0

4 Answers 4

5

Yes, you'd need to set up a cron job that runs regularly (eg: every minute).

Sign up to request clarification or add additional context in comments.

Comments

1

You can accomplish this with a cronjob.

Get some detailed info here:
http://service.futurequest.net/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=30

Plus you might want to ask your hoster how you can add cronjobs on your particular server.

Comments

0

This is kind of job definitely not for web server. The job for web server is to invoke your script on request from the web. PHP engine can run autonomously, without server. You can run it: /usr/bin/php -f yourscript.php, on Windows repace beginning with your php.exe path. Then use cron to schedule execution

Comments

-1

You can execute php from the command line, in this case your scripts executes regardless of server/browser, you can use a for loop, combined with sleep to achieve what you described.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.