+ 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 .
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
+ 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 :)
+ 7
Thanks Man
+ 3
hello, You can use machine virtual with réal web server, i ise vmwarre workstation ans centos os and i installe all packages.
+ 2
If you're using Linux, use
"sudo apt-get install apache2 && sudo apt-get install mysql && sudo apt-get install php5"
+ 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.
0
how about laragon?