How to run cron job on server

1

How do I run a .php file on the entire server, I want to run a php that shows Uptime on the server, but I do not know where to put it to see how long the server is active. Use Dedicated Server.

    
asked by anonymous 26.05.2014 / 21:32

1 answer

4

To run a php script through cron you use the following command:

curl -s -o /dev/null http://dominio/pasta/script.php
    
26.05.2014 / 21:44