<HTML>
<HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="OPENWEBMAIL" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
OK. I see it. /usr/bin/php is the interpreter that allows you to run PHP scripts from the Command Line.
<br />
<br />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.
<br />
<br />
<br />
<br />Chuck
<br /><font size="2">
<br />
<br /><b>---------- Original Message
-----------</b>
<br />
From: Dudi Goldenberg <dudi@kolcore.com>
<br />
To: SB9-PageKeeper Service <ml@sb9.com>, BlueOnyx General Mailing List
<blueonyx@mail.blueonyx.it>
<br />
Sent: Fri, 27 Apr 2012 23:48:06 -0700
<br />
Subject: [BlueOnyx:10384] Re: open_basedir restriction in effect.
<br />
<br />> <font size="2" face="Tahoma" color="#1f497d"><span style="font-size: 11pt; font-family: "Tahoma","sans-serif"; color: rgb(31, 73, 125);">Yes
you
can.<o:p /></span></font>
<br />> <font size="2" face="Tahoma" color="#1f497d"><span style="font-size: 11pt; font-family: "Tahoma","sans-serif"; color: rgb(31, 73, 125);"><o:p>
</o:p></span></font>
<br />> <font size="2" face="Tahoma" color="#1f497d"><span style="font-size: 11pt; font-family: "Tahoma","sans-serif"; color: rgb(31, 73, 125);">All
you need is to tell the script to use <span class="SpellE">php</span> as
the
interpreter, this is a snip of one of
mine:<o:p /></span></font>
<br />> <font size="2" face="Tahoma" color="#1f497d"><span style="font-size: 11pt; font-family: "Tahoma","sans-serif"; color: rgb(31, 73, 125);"><o:p>
</o:p></span></font>
<br />> <font size="2" face="Tahoma" color="#1f497d"><span style="font-size: 11pt; font-family: "Tahoma","sans-serif"; color: rgb(31, 73, 125);">#!/<span class="SpellE">usr</span>/bin/<span class="SpellE">php</span><o:p /></span></font>
<br />> <font size="2" face="Tahoma" color="#1f497d"><span style="font-size: 11pt; font-family: "Tahoma","sans-serif"; color: rgb(31, 73, 125);"><?<span class="SpellE">php</span><o:p /></span></font>
<br />> <font size="2" face="Tahoma" color="#1f497d"><span style="font-size: 11pt; font-family: "Tahoma","sans-serif"; color: rgb(31, 73, 125);">$server
=
"localhost";<o:p /></span></font>
<br />> <font size="2" face="Tahoma" color="#1f497d"><span style="font-size: 11pt; font-family: "Tahoma","sans-serif"; color: rgb(31, 73, 125);">$user
=
"root";<o:p /></span></font>
<br />> <font size="2" face="Tahoma" color="#1f497d"><span style="font-size: 11pt; font-family: "Tahoma","sans-serif"; color: rgb(31, 73, 125);">$<span class="SpellE">pwd</span> =
"secret";<o:p /></span></font>
<br />> <font size="2" face="Tahoma" color="#1f497d"><span style="font-size: 11pt; font-family: "Tahoma","sans-serif"; color: rgb(31, 73, 125);"><o:p>
</o:p></span></font>
<br />> <font size="2" face="Tahoma" color="#1f497d"><span style="font-size: 11pt; font-family: "Tahoma","sans-serif"; color: rgb(31, 73, 125);">$link
= <span class="SpellE">mysql_connect</span>($server, $user, $<span class="SpellE">pwd</span>);<o:p /></span></font>
<br />> <font size="2" face="Tahoma" color="#1f497d"><span style="font-size: 11pt; font-family: "Tahoma","sans-serif"; color: rgb(31, 73, 125);"><span style=""> </span>if (!$link)
{<o:p /></span></font>
<br />> <font size="2" face="Tahoma" color="#1f497d"><span style="font-size: 11pt; font-family: "Tahoma","sans-serif"; color: rgb(31, 73, 125);"><span style=""> </span>die('Could not connect: ' .
<span class="SpellE">mysql_error</span>());<o:p /></span></font>
<br />> <font size="2" face="Tahoma" color="#1f497d"><span style="font-size: 11pt; font-family: "Tahoma","sans-serif"; color: rgb(31, 73, 125);"><rest
of the
script><o:p /></span></font>
<br />> <span class="SpellE"><font size="2" face="Tahoma" color="#1f497d"><span style="font-size: 11pt; font-family: "Tahoma","sans-serif"; color: rgb(31, 73, 125);">mysql_close</span></font></span><font size="2" face="Tahoma" color="#1f497d"><span style="font-size: 11pt; font-family: "Tahoma","sans-serif"; color: rgb(31, 73, 125);">($link);<o:p /></span></font>
<br />> <font size="2" face="Tahoma" color="#1f497d"><span style="font-size: 11pt; font-family: "Tahoma","sans-serif"; color: rgb(31, 73, 125);"><span style="">
</span><o:p /></span></font>
<br />> <font size="2" face="Tahoma" color="#1f497d"><span style="font-size: 11pt; font-family: "Tahoma","sans-serif"; color: rgb(31, 73, 125);">?><o:p /></span></font>
<br />> <font size="2" face="Tahoma" color="#1f497d"><span style="font-size: 11pt; font-family: "Tahoma","sans-serif"; color: rgb(31, 73, 125);"><o:p>
</o:p></span></font>
<br />> <font size="2" face="Tahoma" color="#1f497d"><span style="font-size: 11pt; font-family: "Tahoma","sans-serif"; color: rgb(31, 73, 125);">D.<o:p /></span></font>
<br />> <font size="2" face="Tahoma" color="#1f497d"><span style="font-size: 11pt; font-family: "Tahoma","sans-serif"; color: rgb(31, 73, 125);"><o:p>
</o:p></span></font>
<br />> <font size="2" face="Tahoma" color="#1f497d"><span style="font-size: 11pt; font-family: "Tahoma","sans-serif"; color: rgb(31, 73, 125);"><o:p>
</o:p></span></font>
<br />>
<br />> <b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: "Tahoma","sans-serif";">
blueonyx-bounces@mail.blueonyx.it
[mailto:blueonyx-bounces@mail.blueonyx.it] <b><span style="font-weight: bold;">On
Behalf Of </span></b>SB9-PageKeeper Service
<br />>
<b><span style="font-weight: bold;">Sent:</span></b> Saturday, April 28,
2012
8:53
<br />>
<b><span style="font-weight: bold;">To:</span></b> BlueOnyx General Mailing
List
<br />>
<b><span style="font-weight: bold;">Subject:</span></b> [BlueOnyx:10383]
Re:
open_basedir restriction in
effect.<o:p /></span></font>
<br />> <font size="3" face="Times New Roman"><span style="font-size: 12pt;"><o:p>
</o:p></span></font>
<br />>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: "Arial","sans-serif";">DD</span></font><span style=""><o:p /></span>
<br />>
<br />> <font size="3" face="Times New Roman"><span style="font-size: 12pt;">
<o:p /></span></font>
<br />>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: "Arial","sans-serif";">*/5
* * * * curl -s
<a href="http://yourlocal.domain.com/phpscripts/index.php?your_unique_query">http://yourlocal.domain.com/phpscripts/index.php?your_unique_query</a></span></font><span style=""><o:p /></span>
<br />>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: "Arial","sans-serif";">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..</span></font><span style=""><o:p /></span>
<br />>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: "Arial","sans-serif";">if
it works over the web in a browser it should work when the server reads it
over
the web<font color="#1f497d"><span style="color: rgb(31, 73, 125);"><o:p /></span></font></span></font>
<br />> <font size="2" face="Tahoma" color="#1f497d"><span style="font-size: 11pt; font-family: "Tahoma","sans-serif"; color: rgb(31, 73, 125);"><o:p>
</o:p></span></font>
<br /><b>------- End of Original Message
-------</b>
<br />
</font>
</BODY>
</HTML>