+ 2

How can I run PHP scripts on the pc

am now to php. I would like run the scripts on the pc .I use chrome for running the html files. I have tried putting the php file in it but I don't get any change when I open it in the browser

10th Mar 2018, 12:27 PM
Derick
Derick - avatar
5 Answers
+ 9
Adding alternative to @nik1082 answer, you can try also XAMPP, it runs on Windows, Linux or OSX. https://www.apachefriends.org
10th Mar 2018, 12:45 PM
Ipang
+ 5
@Derick, You're welcome : )
10th Mar 2018, 1:22 PM
Ipang
+ 4
PHP is a server-side language and therefore cannot run on a local filesystem. You must install a web server and put all your source files there for PHP to work. Here's one: http://www.wampserver.com/en/
10th Mar 2018, 12:32 PM
apex137
apex137 - avatar
+ 2
thank you
10th Mar 2018, 12:47 PM
Derick
Derick - avatar
+ 2
You can execute PHP script without a web server (with some limitations), but you cannot use it for his purposes (that is coupled with a web server)
10th Mar 2018, 2:24 PM
KrOW
KrOW - avatar