Connecting Tech Pros Worldwide Help | Site Map

PhP call on conditions

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 02:15 PM
twins
Guest
 
Posts: n/a
Default PhP call on conditions

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


  #2  
Old July 17th, 2005, 02:15 PM
Jerry Stuckle
Guest
 
Posts: n/a
Default Re: PhP call on conditions

twins wrote:[color=blue]
> 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
>[/color]

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
==================
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.