Posted by laredotornado@zipmail.com on 07/19/07 21:12
Hi,
Using php 4.4.4 on Fedora Core 5 Linux. I'm running a PHP program via
a command line script rather than accessing the page through my web
server. I was wondering if it's possible to set the
$_SERVER['DOCUMENT_ROOT'] variable from my shell script so that when I
run my PHP file
#!/bin/bash
/usr/local/bin/php4.cli myfile.php
the variable will be recognized as opposed to returning nothing.
Thanks for any advice, - Dave
[Back to original message]
|