Posted by comp.lang.php on 11/24/06 21:05
I am trying to simply pipe in 2 very small commands and not have to
create a PHP script to do this:
[quote]
php -r >>END; require_once('/var/www/html/tools/functions.inc.php');
echo
xml_to_tcl_list(file_get_contents('/var/www/html/tools/app/xml/data.xml'));
END
[/quote]
However, I do not have the "-r" option in PHP 4.3.9, and I would think
that I would, but why not? Here is all I have to work with:
[quote]
php -h
Usage: php [-q] [-h] [-s] [-v] [-i] [-f <file>]
php <file> [args...]
-a Run interactively
-C Do not chdir to the script's directory
-c <path>|<file> Look for php.ini file in this directory
-n No php.ini file will be used
-d foo[=bar] Define INI entry foo with value 'bar'
-e Generate extended information for debugger/profiler
-f <file> Parse <file>. Implies `-q'
-h This help
-i PHP information
-l Syntax check only (lint)
-m Show compiled in modules
-q Quiet-mode. Suppress HTTP Header output.
-s Display colour syntax highlighted source.
-v Version number
-w Display source with stripped comments and
whitespace.
-z <file> Load Zend extension <file>.
[phillip@www2 ~]$ php "phpinfo()"
Status: 404
Content-type: text/html
X-Powered-By: PHP/4.3.9
No input file specified.
[/quote]
What should I do?
Thanx
Phil
Navigation:
[Reply to this message]
|