[ previous ] [ next ] [ threads ]
 From:  "Ramon A. Darrow" <rdarrow at worrad dot com>
 To:  <m0n0wall at lists dot m0n0 dot ch>
 Subject:  Running command line PHP script
 Date:  Fri, 17 Mar 2006 00:28:30 -0600
I've written a PHP script to update my public IP with EveryDNS, but I
can't figure out how to get m0n0wall to run it with it's command line
PHP.  I've tried using exec.php to run "php -f /tmp/everydns-update.php"
but I get the following:
$ php -f /tmp/everydns-update.php
Status: 404
X-Powered-By: PHP/4.4.1
Content-type: text/html

No input file specified.
I've also tried "/usr/local/bin/php /tmp/everydns-update.php" but I get
the following:
$ /usr/local/bin/php /tmp/everydns-update.php
X-Powered-By: PHP/4.4.1
Content-type: text/html

Warning: Unexpected character in input:  '' (ASCII=12) state=1 in
/usr/local/bin/php on line 2867

Parse error: parse error, unexpected T_STRING in /usr/local/bin/php on
line 2867
Can anyone offer any help?