You are here: Re: Run PHP file as cronjob « PHP Programming Language « IT news, forums, messages
Re: Run PHP file as cronjob

Posted by Mladen Gogala on 06/22/06 13:07

On Wed, 21 Jun 2006 12:51:08 -0700, Mossum wrote:

> I'm familiar with scheduling a cronjob and all the PHP is working
> perfectly. I don't know how to get cron to "run" a PHP file however.
> Any advice would be greatly appreciated.

Beginning it with
#!/usr/bin/php or #!/usr/local/bin/php would be a good start. Also,
change protection to 755, so that httpd process can open it.

--
http://www.mgogala.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация