For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > October 2007 > Re: [PHP-DB] Autorunning a file









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] Autorunning a file
Dustin Simpson

2007-10-10, 3:59 am

Alexander,

Assuming you are on a *nix machine and php is installed in
/usr/local you could schedule a cron job with the command:

/usr/local/bin/php phpfile.php

where phpfile.php is the file you want to execute.

Hope this helps.

Thanks,
--Dustin

Alexander wrote:
> Is there anyway to auto execute a PHP file? I'm working on a script
> that tracks activity and IPs of visitors, and then at a certain time
> daily emails me the results.
>
> Any idea of a way to do this?

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com