svn: /phpdoc/en/trunk/install/windows/ commandline.xml
| From: | Richard Quadling | Date: | Mon, 26 Oct 2009 12:44:45 +0000 |
| Subject: | svn: /phpdoc/en/trunk/install/windows/ commandline.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-5211@lists.php.net to get a copy of this message | ||
rquadling Mon, 26 Oct 2009 12:44:45 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=289932
Log:
Typos
Changed paths:
U phpdoc/en/trunk/install/windows/commandline.xml
Modified: phpdoc/en/trunk/install/windows/commandline.xml
===================================================================
--- phpdoc/en/trunk/install/windows/commandline.xml 2009-10-26 12:25:48 UTC (rev 289931)
+++ phpdoc/en/trunk/install/windows/commandline.xml 2009-10-26 12:44:45 UTC (rev 289932)
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8"?>
<!-- $Revision$ -->
<sect1 xml:id="install.windows.commandline" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Command Line PHP on Microsoft Windows</title>
@@ -17,20 +17,20 @@
any changes to Windows.
<screen>
<![CDATA[
-C:\PHP5\php.exe "C:\PHP Scripts\script.php" -- -arg1 -arg2 -arg3
+C:\PHP5\php.exe -f "C:\PHP Scripts\script.php" -- -arg1 -arg2 -arg3
]]>
</screen>
</para>
<para>
But there are some easy steps that can be followed to make this simpler.
- Some of these steps should already have been taken, but are repeated here
+ Some of these steps should already have been taken but are repeated here
to be able to provide a complete step-by-step sequence.
<itemizedlist>
<listitem>
<para>
- Add the location of the PHP executable (<filename>php.exe</filename>,
+ Add the location of the PHP executable (<filename>php.exe</filename>
<filename>php-win.exe</filename> or
<filename>php-cli.exe</filename>
depending upon your PHP version and display preferences) to the
<varname>PATH</varname> environment variable. Read more about how to
@@ -52,9 +52,9 @@
<para>
The position in which you place the <literal>.PHP</literal> will
determine which script or program is executed when there are matching
- filenames. For example, placing <literal>.PHP</literal> before
- <literal>.BAT</literal> will cause your script to run, rather than
- the batch file, if there is a batch file with the same name.
+ filenames. For example placing <literal>.PHP</literal> before
+ <literal>.BAT</literal> will cause your script to run rather than
+ the batch file if there is a batch file with the same name.
</para>
</note>
</para>
@@ -78,7 +78,7 @@
PHP executable. This is done by running the following command:
<screen>
<![CDATA[
-ftype phpfile=C:\PHP5\php.exe "%1" -- %*
+ftype phpfile="C:\PHP5\php.exe" -f "%1" -- %~2
]]>
</screen>
</para>
@@ -112,16 +112,16 @@
"AlwaysShowExt"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\phpfile\DefaultIcon]
-@="C:\\PHP5\\php-win.exe,0"
+@="C:\\PHP5\\php-win.exe0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\phpfile\shell]
-@="Run"
+@="Open"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\phpfile\shell\Open]
@="&Open"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\phpfile\shell\Open\command]
-@="\"C:\\PHP5\\PHP.EXE\" \"%1\" -- %*"
+@="\"C:\\PHP5\\php.exe\" -f \"%1\" -- %~2"
]]>
</screen>
</example>
@@ -134,7 +134,7 @@
"C:\PHP Scripts\script" -arg1 -arg2 -arg3
]]>
</screen>
- or, if your <literal>"C:\PHP Scripts"</literal> path is in the
+ or if your <literal>"C:\PHP Scripts"</literal> path is in the
<literal>PATH</literal> environment variable:
<screen>
<![CDATA[
@@ -146,7 +146,7 @@
<note>
<para>
There is a small problem if you intend to use this techique and use your
- PHP scripts as commandline filters, like the example below:
+ PHP scripts as commandline filter like the example below:
<screen>
<![CDATA[
dir | "C:\PHP Scripts\script" -arg1 -arg2 -arg3
@@ -159,7 +159,7 @@
]]>
</screen>
You may find that the script simply hangs and nothing is output.
- To get this operational, you need to make another registry change.
+ To get this operational you need to make another registry change.
<screen>
<![CDATA[
Windows Registry Editor Version 5.00