|
Posted by Ben Bean on 11/29/01 11:28
Yes, the online documentation is EXcellent! So I will be using the php.exe
in command line mode VERY SOON! I will readily pick up on ALL of the
wonderful ways to parse an input file and send output to the DOS console or
to a file.
This is a special but *utterly* rudimentary desired configuring of PHP
package. I downloaded the 7MB PHP package for Windows, unzipped it into a
directory, and now I want only to do ONE simple thing: use the command line
mode in order to check and see what HTML output will be produced by some
simple php scripts I am devising for someone very far away. My system is
Windows ME, and I'm not using ANY server, just the PHP.exe alone in command
line interpretation.
I tried to make it work by renaming the "php.ini-recommended" that ships
with the package, to the simple "php.ini". But so far no success. I can also
run this via the system's "Run" command line, but no go. I type "php -v",
hoping to see the version information. But the DOS execution window comes
and goes in an instant and I see nothing. So instead, I just double-click
the app "php.exe" and I get a DOS window. Now, the online documentation
claims that the command:
$ php -r 'var_dump($argv);' -h
should cause PHP to output its Help summary to my console, but I paste that
precise text into my blank window and hit Return, and I get nothing.
I need a teensy leg up, presumably. YES, I KNOW this can be achieved without
having ANY server on my PC! Don't tell me it can't be done cuz I know
better.
Please advise me how to get PHP CLI up and running, so that the command line
cited above, when entered, followed by Return, will print the Help summary,
and I'll happily take it from there, learning all the correct command
syntaxes from the comprehensive online documentation.
Thanks in advance! :)
I
[Back to original message]
|