Which PHP file to add to my Path using WampServer (Win7/64)? How to set the env variable for PHP?


With a specific end goal to run PHP from the command prompt in Windows, you have to tell Windows where PHP is situated by adding its location to your Windows Path variable.

Steps : 

1. Click the Start menu and go to Computer.

2. In the Computer window click the System properties button on navigation bar.

3. In the System properties window click the Advanced system settings link.

4. In the Advanced system settings window click the Environment Variables button.

5. In the Environment Variables window select the path in the user variables section and click the Edit… button.

6. In the Edit User Variable window place your cursor at the end of the contents within the Variable value: input and add the location of PHP to that string. 

Sample :  C:\wamp\bin\php\php5.3.10   // version may change like this : php5.3.10   

7. After you have entered the location of PHP, click the OK button and restart your command prompt. Congrats, you can now run PHP from the Windows command prompt!

1 comments:

thank you for sharing these valuable content with us. Being a premium Web Designing Company in surat, we are passionate about creating alluring mobile user interfaces that proudly represent your brands.We always understand your need and provide you exactly what you want.

Reply

Post a Comment

Go for Best Deal