[BlueOnyx:10385] Re: open_basedir restriction in effect.

Chuck Tetlow chuck at tetlow.net
Sat Apr 28 02:54:06 -05 2012


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 <dudi at kolcore.com> 
To: SB9-PageKeeper Service <ml at sb9.com>, BlueOnyx General Mailing List <blueonyx at 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-bounces at mail.blueonyx.it[mailto:blueonyx-bounces at 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 -------
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20120428/24fbd8c4/attachment.html>


More information about the Blueonyx mailing list