You are here: Re: automatic PHP execution? « PHP Programming Language « IT news, forums, messages
Re: automatic PHP execution?

Posted by Peter van Schie on 11/18/73 11:43

Colin McKinnon wrote:
> Peter van Schie wrote:
>
> > On Windows you can use Task Scheduler on Linux and UNIX you can use a
> > cronjob, check out: execute the command crontab -e to add the cronjob
> > and check out man crontab.
> >
>
> That's a crappy way to solve the problem. Most times the program runs, the
> file isn't going to be there.

So you check if the file exists in your script...

> Really the most elegant solution would be to get the FTP server to send a
> notification or launch the script itself - but that's not very likely.

Speaking of crappy ways....
Why not just do the most logical thing and use the appropriate services
to solve a problem?
You cannot tell me you'd really modify the code of your ftp server
software to solve a simple problem like this.

> You could redirect the logfile of the FTP server to a program which could
> trigger appropriate responses.

Peter.
--
http://www.phpforums.nl

 

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

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