Can anyone give me step by step setting up information to run php on a computer?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can anyone give me step by step setting up information to run php on a computer??

Setting up Computer to run php

7th Sep 2017, 12:35 PM
Dheeraj P
Dheeraj P - avatar
12 Answers
+ 2
you need a webserver software like Apache and a browser... create a file with .php ad extension, pur your code inside and put the file in your web server folder. then point your browser to that file and you're done :)
7th Sep 2017, 12:40 PM
Luca
Luca - avatar
+ 2
remember, in LAMP, l means Linux, so pay attention to what you find and check that tutorial is actually for windows :)
7th Sep 2017, 12:52 PM
Luca
Luca - avatar
+ 2
just use xamp cuz its cross platform. make a project folder in xamp>htdocs>project save php code in that localhost/project you are good to go ps : make sure to enable apache server before u run your code
7th Sep 2017, 4:49 PM
Mubashir Ahmed
Mubashir Ahmed - avatar
+ 1
Windows? Linux (which arch)? OSX? I've even compiled PHP on Androids...but I'd like to find something relevant to you.
7th Sep 2017, 12:41 PM
Kirk Schafer
Kirk Schafer - avatar
+ 1
yes, also...
7th Sep 2017, 12:43 PM
Luca
Luca - avatar
+ 1
try to google "lamp server on windows", there are a lot of useful results!
7th Sep 2017, 12:44 PM
Luca
Luca - avatar
+ 1
Manual (by hand) installation: https://www.sitepoint.com/how-to-install-php-on-windows/ * leads to automatic installers The installation manual (documentation; language change at upper right) http://php.net/manual/en/index.php
7th Sep 2017, 12:57 PM
Kirk Schafer
Kirk Schafer - avatar
+ 1
Thanks
7th Sep 2017, 1:01 PM
Dheeraj P
Dheeraj P - avatar
0
Windows
7th Sep 2017, 12:41 PM
Dheeraj P
Dheeraj P - avatar
0
So do i need to learn SQL to give database access to whatever website im working with?
7th Sep 2017, 12:42 PM
Dheeraj P
Dheeraj P - avatar
0
Ohkay thank u so much ☺
7th Sep 2017, 12:44 PM
Dheeraj P
Dheeraj P - avatar
0
Thanks a lot!
7th Sep 2017, 12:53 PM
Dheeraj P
Dheeraj P - avatar