+ 7

How to use PHP.

how do one use php on a PC. which software should one use to run a Php file on a PC .

18th Oct 2017, 12:26 PM
Prakshenjay Bhati
Prakshenjay Bhati - avatar
7 Réponses
+ 10
Install xammp ,it include Apache , MariaDB , PHP , and Perl https://www.apachefriends.org/index.html #to run php program : 1) download xammp 2) put your file(s) in a folder named htdocs 3)go to a browser and write localhost/file_name ,if the file is in a folder write localhost/folder_name/file_name (including its extension) #note: folder_name = the folder name file_name = file name
18th Oct 2017, 1:19 PM
Leon lit
Leon lit - avatar
+ 8
there is a better software to run php : the most used is 'Wamp server'. the php is execute in the server side. so when you work in local you don't have server, you need a simulator. wamp server is really easy to use :)
18th Oct 2017, 1:38 PM
NoxFly
NoxFly - avatar
+ 7
Thanks Man
18th Oct 2017, 1:29 PM
Prakshenjay Bhati
Prakshenjay Bhati - avatar
+ 3
hello, You can use machine virtual with réal web server, i ise vmwarre workstation ans centos os and i installe all packages.
18th Oct 2017, 1:51 PM
sfeuh
sfeuh - avatar
+ 2
If you're using Linux, use "sudo apt-get install apache2 && sudo apt-get install mysql && sudo apt-get install php5"
18th Oct 2017, 7:46 PM
Private [GER]
Private [GER] - avatar
+ 2
That would set up a LAMP. Just run "sudo service apache2 start && sudo service mysql start" then. You copy the html or PHP files into /var/www/html then.
18th Oct 2017, 7:47 PM
Private [GER]
Private [GER] - avatar
0
how about laragon?
19th Oct 2017, 4:19 PM
syafiq