how to execute php script with cron jobs ?

Status
Not open for further replies.

magames

New Member
Messages
22
Reaction score
0
Points
0
i have /public_html/scripts/cron.php file and i want to open it automatically with cron jobs .

please help me i want to know the Command to write in Standard Cron Manager(cPanelX)
 

phpasks

New Member
Messages
145
Reaction score
0
Points
0
i have /public_html/scripts/cron.php file and i want to open it automatically with cron jobs .

please help me i want to know the Command to write in Standard Cron Manager(cPanelX)

/usr/local/bin/php -q /home/username/public_html/scripts/cron.php

First PHP Path than -q than your file script path set.

& time set when will run this script.
 

scorch94

Member
Messages
228
Reaction score
0
Points
16
I thought you can do it like this:
php /home/user/public_html/example.php
Is this one wrong?
 
Status
Not open for further replies.
Top