OK. I see it. /usr/bin/php is the interpreter that allows you to run PHP scripts from the Command Line.
Cool. Learned something new today. Don't know what I'd need to use a PHP script from CLI for - but now know you can do it. Chuck ---------- Original Message ----------- From: Dudi Goldenberg <d...@kolcore.com> To: SB9-PageKeeper Service <m...@sb9.com>, BlueOnyx General Mailing List <blueonyx@mail.blueonyx.it> Sent: Fri, 27 Apr 2012 23:48:06 -0700 Subject: [BlueOnyx:10384] Re: open_basedir restriction in effect. > Yesyou can. > > Allyou need is to tell the script to use php as theinterpreter, this is a > snip of one of mine: > > #!/usr/bin/php > <?php > $server= "localhost"; > $user= "root"; > $pwd = "secret"; > > $link= mysql_connect($server, $user, $pwd); > if (!$link) { > die('Could not connect: ' . mysql_error()); > <restof the script> > mysql_close($link); > > ?> > > D. > > > > From: > blueonyx-boun...@mail.blueonyx.it[mailto:blueonyx-boun...@mail.blueonyx.it] > OnBehalf Of SB9-PageKeeper Service > Sent: Saturday, April 28, 20128:53 > To: BlueOnyx General Mailing List > Subject: [BlueOnyx:10383] Re:open_basedir restriction in effect. > > > DD > > > > */5* * * * curl -s > http://yourlocal.domain.com/phpscripts/index.php?your_unique_query > > curl-s will run a web php script using crontab for a user php script on a > 5106ras root haven't tested it as used in a user cron.. > > ifit works over the web in a browser it should work when the server reads it > overthe web > ------- End of Original Message -------
_______________________________________________ Blueonyx mailing list Blueonyx@mail.blueonyx.it http://mail.blueonyx.it/mailman/listinfo/blueonyx