You are here: Re: PhP call on conditions « PHP Programming Language « IT news, forums, messages
Re: PhP call on conditions

Posted by Jerry Stuckle on 11/14/14 11:21

twins wrote:
> Hi,
>
> Iam wondering if there is any method to do the following:
> 1) When a file is created in a directory in local computer.
> 2) When the mysql date stored in the DB approaches the current date and
> time.
> For the above two conditions I would like to call a php file.
>
> Its not good to have the php code running in the background and waiting
> for the above 2 events.
>
> Please do suggest other methods to achieve the above.
>
> Thanks
>

Think about it - unless there's something monitoring for these conditions, how
do you expect to be able to start some PHP code when they occur?

There isn't anything in Unix which will do it. Same with MySQL. You'll need to
create something. It can either be a program which runs constantly in the
background, or (my suggestion) a cron job you kick off every so often to look
for these conditions.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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