[BlueOnyx:10384] Re: open_basedir restriction in effect.
Dudi Goldenberg
dudi at kolcore.com
Sat Apr 28 01:48:06 -05 2012
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: blueonyx-bounces at mail.blueonyx.it [mailto:blueonyx-bounces at mail.blueonyx.it] 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20120427/54e6dbe5/attachment.html>
More information about the Blueonyx
mailing list