Re: Re: Cronjob

From: Date: Wed, 25 Sep 2002 17:49:42 +0000
Subject: Re: Re: Cronjob
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-117597@lists.php.net to get a copy of this message
Thanks for the info Chris, it works! How do I pass arguments to the script? I'm assuming it'd just be: test.php arg1 arg2 The stuff I've read says $argc should be the count of the # of arguments, and $argv should be an array holding them...but when I do a simple: print "# of Arguments: $argc\n"; It prints nothing, not even 0 --- Chris Hewitt <g0pae@manordat.demon.co.uk> wrote: > > > > > >On Wed, 25 Sep 2002, Daren Cotter wrote: > > > >> > >>My problem, is that I absolutely NEED to run a PHP > >>script using crontab. The script needs to send > >>numerous queries to a database every hour. Is > there > >>any way I can accomplish this, directly or > indirectly? > >> > Are you sure its not already there? Commonly in > /usr/bin. Try a "which > php" and see if it finds anything? > > HTH > Chris > __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com

« previous php.general (#117597) next »