Re: Autorunning a file

From: Date: Wed, 10 Oct 2007 04:36:49 +0000
Subject: Re: Autorunning a file
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-44182@lists.php.net to get a copy of this message
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?


« previous php.db (#44182) next »