Skip to content
Advertisement

How to Auto run PHP file on windows server? [closed]

I am a newbie of PHP and I would like to create a php file that can autorun on the windows server at a specific time.

any idea to achieve??

My PHP File

JavaScript

Anyidea, Thank you very much.

Advertisement

Answer

You may execute a php on windows machine thru the command line:

JavaScript

So if you want the machine to execute it every day at a specified time, please put the command into the windows scheduler and set the time.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement