PHP-File per Cron starten (mit der Free-Edition)

Hallo,
ich habe für eine Servermonitoring-Software einen PHP-File, der per Cron alle 10 Minuten ausgeführt werden soll.

Nur, wie bekomme ich den Aufruf hin? Folgendes soll aufgerufen werden:
*/15 * * * * /usr/bin/php /var/www/html/phpservermon/cron/status.cron.php

Das Problem für mich ist, dass ich den PHP-Teil nicht integrieren kann, da der Pfad vorgegeben ist und ich nichts davor schreiben kann.

Idee?

Viele Grüße
TH

<?php phpinfo(); ?>

Paste that into test.php and open test.php on your site ; PHP info will show.

CTRL+F and search for PHP_DOCUMENT_ROOT

Thanks for that reply, but where to put the php-path?

As you can see, I just can enter include the path/script, but nothing else. So, where to enter the php-doc-root?

Regards
TH

You would put the root in your script you are commanding to run?

No, it has to look lik this:

*/15 * * * * /usr/bin/php /var/www/html/phpservermon/cron/status.cron.php

Time is OK and set but than there is the script-call and befor that i have to call php and than call that script!

Hmm not sure maybe someone else might help I run my “run_script.php” from public_html and my cron is set within the same folder “cronjob2.php”

Can you show me this 2 files so that i can see, how to call the file?