+ 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
7 Réponses
+ 4
install XAMPP. it contains apache and the php interpreter.
+ 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.
+ 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
+ 1
You can install Xampp or Wamp if your SO is Windows. Then you will have Apache server, phpmyadmin and php.
+ 1
Install xamp. Then add the php interpreter in xamp to path. This way you can run php files from cmd.
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