-
Notifications
You must be signed in to change notification settings - Fork 2
Quickest way to get PHP running on a Windows PC
LemonWay edited this page Nov 27, 2018
·
4 revisions
- Download the portable (.zip) version of UWAMP
- Unzip it to the
path\to\UwAmp\
folder so thePATH_TO_PHP_EXE
ispath\to\UwAmp\bin\php\php-7.0.3
- You will have to add this
PATH_TO_PHP_EXE
to thePath
environment so that you can callphp
on command line from anywhere
- create the
php.ini
from the existingphp_uwamp.ini
:
copy PATH_TO_PHP_EXE\php_uwamp.ini PATH_TO_PHP_EXE\php.ini
- Edit the
php.ini
:
- replace
{PHPEXTPATH}
withPATH_TO_PHP_EXE\ext
(use the absolute Path here) - replace
{PHPZENDPATH}
withPATH_TO_PHP_EXE\zend_ext
(use the absolute Path here)
Activate the php_soap
extension so that you can run PHP scripts which used SoapClient
extension=php_soap.dll
extension=php_openssl.dll
Now, you should be able to run any PHP scripts locally:
php Something.php
You would also be able to run a http server locally:
php -S localhost:8000