You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-11Lines changed: 15 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
# WampServer PHP CLI Version Changer
2
-
WampServer PHP CLI version changer is a Microsoft Windows batch script that allows you to easily add and then change between available WampServer PHP CLI versions using the users environmental path.
2
+
WampServer PHP CLI Version Changer is a Microsoft Windows batch script that allows you to easily change between installed WampServer PHP CLI versions using the users environmental path.
3
3
4
4
## Minimum Requirements
5
5
The following are required for the CLI Changer script to function correctly.
@@ -11,20 +11,18 @@ No installation is required.
11
11
12
12
At just over 7kB the CLI Changer script is small enough to be saved anywhere in your file system.
13
13
14
-
**Note:** To operate seamlessly the Microsoft Windows "cmd.exe" executable must be in your system path. The standard installation path is ``C:\Windows\System32``.
15
-
16
14
**Tip:** Once you have save the CLI Changer script, create a desktop shortcut to it for quick and easy access.
17
15
18
16
## Configuration
19
17
If using a WampServer 32-bit version with default settings, then no configuration is necessary.
20
18
21
-
If using a WampServer 64-bit version **OR** a different install path was set during installation, then follow the steps below:
19
+
If using a WampServer 64-bit version **OR** a different install path was used during installation, then follow the steps below:
22
20
23
21
1. Open the CLI Changer script in your preferred text editor.
24
-
2. Change the value of the `$pathToInstall` variable to match that of your WampServer install path, taking care **not to**use quotes around the value.
22
+
2. Change the value of the `$pathToInstall` variable to match that of your WampServer installation path. **Note:**If your path has spaces in it then the line should look like this: `"$pathToInstall=C:\wamp server"`
25
23
3. Once you have changed the value, save and close your editor.
26
24
27
-
For reference, the default WampServer install paths are:
25
+
For your reference, the default WampServer install paths are:
28
26
-`C:\wamp` - For 32-bit installations.
29
27
-`C:\wamp64` - For 64-bit installations.
30
28
@@ -45,9 +43,9 @@ There are two ways you can use the CLI Changer script.
45
43
* Command line interface (CLI).
46
44
47
45
### Text Based User Interface (TUI)
48
-
Upon running the CLI Changer script you will be presented with a numbered list of available PHP versions that you can select from.
46
+
Upon running the CLI Changer script you will be presented with a numbered list of installed PHP versions that you can select from.
49
47
50
-
The exact list of available PHP CLI versions is dependent on what you currently have in your WampServer PHP addon folder.
48
+
The exact list of installed PHP CLI versions is dependent on what you currently have in your WampServer PHP addon folder.
51
49
52
50
```
53
51
Available PHP CLI Versions
@@ -77,7 +75,7 @@ To select a PHP version:
77
75
78
76
The CLI Changer script will display the newly set PHP version number and prompt you to press any key to exit.
79
77
80
-
**Note:** The newly selected PHP version will only be available to new command line windows opened after the change. Existing windows will still reference any previously set PHP version.
78
+
**Note:** The newly selected PHP version will only be available to new command line windows. Existing windows will still reference the previously set PHP version.
81
79
82
80
To exit the CLI Changer script without making any changes just press the ENTER key.
83
81
@@ -86,11 +84,17 @@ Should you make an invalid selection or should the selection be the same as the
86
84
### Command Line Interface (CLI)
87
85
To update the PHP CLI version number directly from the command line, you can pass in the desired PHP version via the scripts first argument. This will bypass the selection screen and go straight to setting the desired version number.
0 commit comments