Web Hosting Forum | Lunarpages
News: October 6, 2008 - Submit Your Site for the October 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 15, 2008, 04:19:35 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: PHP Cron: No input file specified  (Read 721 times)
wm_crash
I wanna be Fred Flinstone
Intergalactic Cowboy
*****
Offline Offline

Posts: 56


« on: October 14, 2007, 10:10:26 AM »

Hi,

I try to run a php file as cron job every 15 minutes.
I have tried:

/usr/bin/php -q /home/<myrealhomedir>/public_html/iaria/admin/cron.php

and

php -q /home/<myrealhomedir>/public_html/iaria/admin/cron.php

I get email notification stating: "No input file specified." I have no idea what that means. All file paths are correct. The file runs OK from the command line (tried on a different server as I don't have shell access on this one).

Any help is appreciated.

cheers,
wm_crash
Logged
clever_clown
Intergalactic Superstar
*****
Offline Offline

Posts: 185



« Reply #1 on: October 14, 2007, 10:58:50 AM »

Hello,

Try this: /usr/local/bin/php /home/<myrealhomedir>/public_html/iaria/admin/cron.php -q  (I dont know what you mean by this param -q) anywany try it now

Regards heaps
Logged
wm_crash
I wanna be Fred Flinstone
Intergalactic Cowboy
*****
Offline Offline

Posts: 56


« Reply #2 on: October 14, 2007, 01:39:03 PM »

That works, thanks!

The -q option is meant to execute the php within the directory of the php file. That way, relative paths work ok.

cheers,
wm_crash
Logged
clever_clown
Intergalactic Superstar
*****
Offline Offline

Posts: 185



« Reply #3 on: October 14, 2007, 01:46:22 PM »

you are welcome

best wishes
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM