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?
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/uns
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?
Use cron if you're on a linux/bsd based system or scheduled tasks if
you're on
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
hp-db@lists.php.net
Subject: [PHP-DB] Autorunning a file
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?
--
PHP Database Mailing List (http://w
AIL PROTECTED]
Sent: Wednesday, October 10, 2007 7:34 AM
To: php-db@lists.php.net
Subject: [PHP-DB] Autorunning a file
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 ide