his way I'm able to run the PHP programs finely but I want to run the same program from Windows Command Prompt
For it I done following steps :
- Went to Advanced System Settings (Control Panel\System and Security\System\Advanced System Settings)
- Then clicked on Environment Variables
- Then selected the variable Path
- Then clicked Edit... button
- Then after the ending semicolon of existing string I added the string "C:\xampp\php" by adding a blank space after the semicolon.
Skip to Step 4 by left clicking the Windows Start Button and then immediately type system env
, windows search will suggest Edit the system environment variables
, Click this and and go to step 4.
- Right Click Windows Start Button, Select System
- Click on System Information
- Click on Advanced System Settings
- Click on Environment Variables
- Select PATH under System Variables heading then click Edit.
- Click New, Type in Path location for executable file
- Press OK and APPLY on all applicable panels then restart the computer.
After the above open Windows Command Prompt
run php.exe
I hope now its working fine
Comments
Post a Comment