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