Am using
php-cron /public_html/crons/cron24r.php
php-cron /public_html/crons/cron30r.php
every hour and it aint working?:dunno:
Am using
php-cron /public_html/crons/cron24r.php
php-cron /public_html/crons/cron30r.php
every hour and it aint working?:dunno:
are you using the full path to your file and to php? Are you using a shebang in your php file or did you set up cron with the full php path?
this guy explains it pretty well: http://bytes.com/groups/php/7002-cal...bang#post28578
gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer
i got it on full path but still aint working please help me i suck at cron its my 1 time
Status: 404 Not Found
X-Powered-By: PHP/5.2.6
Content-type: text/html
No input file specified.
Using regular mode (not the unix style advanced mode) you should type in this command: /usr/local/bin/php /home/{cpanel user name}/{file you want to run} then set the frequency.
gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer
I have a question, do I need to put the <?php ?> tags when using the shebangs? if so, were do I put them?
█ Xavier L | Community Public Relations Manager (Free Hosting Support)
█ Yes, my position is too cool to even exist!
█ How am I helping? Rate this post by clicking theicon below! (this is even better than "liking" a post)
█ Terms of Service | Acceptable Use Policy | x10Hosting Wiki
tags must go after shebangs. Shebangs must be absolutely first in the file.
gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer
Okay, Thanks
█ Xavier L | Community Public Relations Manager (Free Hosting Support)
█ Yes, my position is too cool to even exist!
█ How am I helping? Rate this post by clicking theicon below! (this is even better than "liking" a post)
█ Terms of Service | Acceptable Use Policy | x10Hosting Wiki
Can i use http://www.page.com/cron.php as path?
by the way am geting this error
Warning: include(../includes/inc-setup.php): failed to open stream: No such file or directory in /home/lordsatw/public_html/cron/cron24r.php on line 4
Warning: include(): Failed opening '../includes/inc-setup.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/lordsatw/public_html/cron/cron24r.php on line 4
Fatal error: Call to a member function query() on a non-object in /home/lordsatw/public_html/cron/cron24r.php on line 6
on my email
Last edited by lordsatw; 06-06-2009 at 09:26 AM.
these mean that there is an error. check if the files '/home/lordsatw/public_html/includes/inc-setup.php' and '/home/lordsatw/public_html/includes/inc-setup.php' exists.
█ Xavier L | Community Public Relations Manager (Free Hosting Support)
█ Yes, my position is too cool to even exist!
█ How am I helping? Rate this post by clicking theicon below! (this is even better than "liking" a post)
█ Terms of Service | Acceptable Use Policy | x10Hosting Wiki
No, you cannot execute remote code. The file must be on the server. These errors are because you are using relative paths. It looks like all your included files are in the same folder, why don't you use set_include_path() http://us3.php.net/manual/en/functio...clude-path.php
gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer