Skip to content

Commit 996abce

Browse files
Updated readme.md
1 parent 6eaf727 commit 996abce

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ WampServer PHP CLI Version Changer is a Microsoft Windows batch script that allo
1414
* [How To Use](#how-to-use)
1515
* [Text Based User Interface (TUI)](#text-based-user-interface-tui)
1616
* [Command Line Interface (CLI)](#command-line-interface-cli)
17-
* [Session Mode](#command-line-interface-cli---session-mode)
17+
* [Session Mode](#session-mode)
1818
* [FAQ's](#faqs)
1919

2020
## Minimum Requirements
@@ -27,7 +27,7 @@ The following are required for the CLI Changer script to function correctly.
2727

2828
No installation is required.
2929

30-
At just over 10kB the CLI Changer script is small enough to be saved anywhere in your file system.
30+
At just over 13KB the CLI Changer script is small enough to be saved anywhere in your file system.
3131

3232
**Tip:** Once you have save the CLI Changer script, create a desktop shortcut to it for quick and easy access.
3333

@@ -52,6 +52,7 @@ rem | User Defined Variable(s) |
5252
rem +------------------------------------------------+
5353
5454
rem WampServer custom install path.
55+
rem Note: Trailing slash is not required.
5556
set $customInstallPath=D:\WampServer 64-Bit
5657
```
5758

@@ -130,9 +131,9 @@ Following execution, an exit code will be given:
130131

131132
**Tip:** Calling scripts via the command line is common during (automated) development, testing and deployment. EG: Incorporate it into your build files...
132133

133-
### Command Line Interface (CLI) - Session Mode
134+
#### Session Mode
134135

135-
Should you have the need to temporarily change the PHP version number within the open command window (session) only and not across the whole system (multiple sessions) then you should use the `--temp` option.
136+
Should you have the need to only change the PHP version number within an open command window (session) and not across your whole system then you can use the `--temp` option.
136137

137138
From a CMD prompt:
138139
```
@@ -144,7 +145,7 @@ From a Bash or Powershell prompt:
144145
$ start "C:\path\to\cli_changer.bat" php7.2.3 --temp
145146
```
146147

147-
The short command line option `-t` can also be used in place of `--temp`.
148+
The short command line option `-t` is also available.
148149

149150
**Note:** Enclosing the script path in quotes if it contains spaces and knowing the available PHP CLI version(s) in advance is still required.
150151

@@ -153,7 +154,7 @@ Following execution, an exit code will be given:
153154
- `0` - Success
154155
- `1` - Failure
155156

156-
**Tip:** Calling scripts via the command line is common during (automated) development, testing and deployment. EG: Incorporate it into your build files...
157+
**Note:** Using the `--temp` or `-t` option will only change the PHP version number within that command window. Multiple command windows can be open and the PHP version number changed without affecting other open command windows.
157158

158159
## FAQ's
159160

@@ -163,11 +164,14 @@ Environment 'path' variables allow the user (and system) to call an executable w
163164

164165
When the user (or the user's script) calls `php` or `php.exe`, the path pointing to the executable will be used. If an environment path contains two or more paths to a PHP executable, then only the first one found is executed. The other php executables will never be called, ever.
165166

166-
Based on this information and pursuant to the successful selection of a PHP version number, this script scans and then removes any and all reference to any php executable path(s) found within the environment 'user' path prior to appending the selected PHP version path.
167+
Based on this information and pursuant to the successful selection of a PHP version number, this script scans and then removes any and all reference to any php executable path(s) found within the environment 'user' path (or the cmd window 'session' path) prior to appending the selected PHP version path.
167168

168169
The PHP CLI version number returned by typing `php -v` at the command prompt should be the same as that selected by you when using this script. If it is not, there is a strong chance that there is reference to a PHP executable within the environment 'system' path. To correct this situation, you must remove this reference from the environment 'system' path manually.
169170

170-
Both the environment 'user' and 'system' paths can be accessed by clicking 'Start' -> 'Control Panel' -> 'System' -> 'Advanced system settings' -> 'Environment Variables...'
171+
Access the environment 'user' and 'system' paths by:
172+
173+
* Windows 7: Clicking 'Start' -> 'Control Panel' -> 'System' -> 'Advanced system settings' -> 'Environment Variables...'
174+
* Windows 10: Clicking 'Start Search' -> Type 'env' -> Click the result 'Edit system environment variables' -> 'Environment Variables...'
171175

172176
### How do I remove the error at the bottom of the WampServer right-click menu?
173177

0 commit comments

Comments
 (0)