Hi,

 

This doesn't work for me. I added 

 

#!/usr/bin/php 

 

at the start of my script, changed chmod and tried to launch it with:

 

                /home/.sites/70/site4/update_products.php

 

I get the same error regarding allowed paths, ditto if I try:

 

                /usr/bin/php  /home/.sites/70/4/update_products.php

 

*sigh*

 

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Dudi Goldenberg
Sent: 28 April 2012 07:48
To: SB9-PageKeeper Service; BlueOnyx General Mailing List
Subject: [BlueOnyx:10384] Re: open_basedir restriction in effect.

 

Yes you can.

 

All you need is to tell the script to use php as the interpreter, 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());

<rest of the script>

mysql_close($link);

                                                                    

?>

 

D.

 

 

From: [email protected]
[mailto:[email protected]] On Behalf Of SB9-PageKeeper
Service
Sent: Saturday, April 28, 2012 8: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
5106r as root haven't tested it as used in a user cron..

if it works over the web in a browser it should work when the server reads
it over the web

 

_______________________________________________
Blueonyx mailing list
[email protected]
http://mail.blueonyx.it/mailman/listinfo/blueonyx

Reply via email to