+ 1

How to run a php program on PC?

we will write the Java code in notepad and can run but how to save and run php program

31st May 2017, 8:38 AM
Champs
7 Réponses
+ 4
install XAMPP. it contains apache and the php interpreter.
31st May 2017, 8:41 AM
Mario L.
Mario L. - avatar
+ 2
You need a HTTP server to run a PHP program in your pc. Try Apache http server. It's the best and follow the procedures to setup the PHP with the server. There are many blogs which explains how to setup the PHP with http server.
31st May 2017, 8:42 AM
👍Challenge the W . O . L . F👈
👍Challenge the W . O . L . F👈 - avatar
+ 1
it depends.. what you are going to do if you simply process something, and no special visual output is required, than you can simply type 'php scriptname.php' and your script will be run (if path to your php.exe is set) otherwise - apache server (or similar http server) is required, and you run your script by requesting local page in web browser
31st May 2017, 8:47 AM
Michal
Michal - avatar
+ 1
You can install Xampp or Wamp if your SO is Windows. Then you will have Apache server, phpmyadmin and php.
31st May 2017, 6:18 PM
David Seva
David Seva - avatar
+ 1
Install xamp. Then add the php interpreter in xamp to path. This way you can run php files from cmd.
1st Jun 2017, 9:36 AM
rAsHtElL
rAsHtElL - avatar
0
You can install Mamp on MacOs and run it, search localhost on your browser and then go to phpmyadmin. From there you can do all what you want
19th May 2019, 11:44 PM
AbdulWahab Yusuf
AbdulWahab Yusuf - avatar