+ 2

HOW TO RUN PHP?!?!!!?!!!

I have windows 10 and sublime text 3. I don’t have anything else. Please tell me exactly what to do so that I can run php with html forms.

12th Apr 2018, 1:13 AM
Someone Else
Someone Else - avatar
48 Respuestas
+ 8
Download xampp https://www.apachefriends.org/index.html Install and open it. Start apache server. Click the folder icon on the right and then go to htdocs folder which is your web root. It’s the place where you store all your files. Default path for it is C:/xampp/htdocs Create index.php file on the htdocs folder. You can access it with localhost. http://localhost
12th Apr 2018, 1:40 AM
Toni Isotalo
Toni Isotalo - avatar
+ 8
Download it, Open the .exe file and install it.
12th Apr 2018, 1:57 AM
Toni Isotalo
Toni Isotalo - avatar
+ 8
If you want to use mysql database with php, just start the mysql server from the control panel.
12th Apr 2018, 2:36 AM
Toni Isotalo
Toni Isotalo - avatar
+ 7
Yes you can run it offline. No viruses. The apache server is the one that runs php. Xampp is just usefull because it’s allready configured and it comes with mysql.
12th Apr 2018, 1:46 AM
Toni Isotalo
Toni Isotalo - avatar
+ 7
Here is a direct link https://sourceforge.net/projects/xampp/files/latest/download?source=files You create it in the htdocs file. htdocs/index.php If the sublime text doesn’t open it you need right click the file and select open with sublime text
12th Apr 2018, 1:52 AM
Toni Isotalo
Toni Isotalo - avatar
+ 7
There should be a folder icon on the right. Click that and then you should see the htdocs some where there
12th Apr 2018, 2:06 AM
Toni Isotalo
Toni Isotalo - avatar
+ 6
and you can view it in localhost. http://localhost And don’t forget to start your apache server. Click the start button in the xampp control panel.
12th Apr 2018, 2:02 AM
Toni Isotalo
Toni Isotalo - avatar
+ 6
There you can see all the server that xamp has. Click the start button next to apache server
12th Apr 2018, 2:05 AM
Toni Isotalo
Toni Isotalo - avatar
+ 6
yes. Everything
12th Apr 2018, 2:16 AM
Toni Isotalo
Toni Isotalo - avatar
+ 6
Did you use .php extension on your file?
12th Apr 2018, 2:20 AM
Toni Isotalo
Toni Isotalo - avatar
+ 6
Can you post the url?
12th Apr 2018, 2:20 AM
Toni Isotalo
Toni Isotalo - avatar
+ 6
type localhost in your browser
12th Apr 2018, 2:22 AM
Toni Isotalo
Toni Isotalo - avatar
+ 6
Oh yeah. It’s just welcome page. You can delete that. If you go to the htdocs folder you can see that the xampp page that you see right now is in there. Delete all files in htdocs and you get rid of it.
12th Apr 2018, 2:25 AM
Toni Isotalo
Toni Isotalo - avatar
+ 6
Can you post the url address from your browser?
12th Apr 2018, 2:30 AM
Toni Isotalo
Toni Isotalo - avatar
+ 5
yes
12th Apr 2018, 2:00 AM
Toni Isotalo
Toni Isotalo - avatar
+ 5
You can uncheck not to install right?
12th Apr 2018, 2:03 AM
Toni Isotalo
Toni Isotalo - avatar
+ 5
Yes.
12th Apr 2018, 2:04 AM
Toni Isotalo
Toni Isotalo - avatar
+ 5
No ;). The files inside.
12th Apr 2018, 2:26 AM
Toni Isotalo
Toni Isotalo - avatar
+ 5
Yes. When the htdocs folder ks empty you can start creating your own.
12th Apr 2018, 2:27 AM
Toni Isotalo
Toni Isotalo - avatar
+ 1
Then after that do I just make s index.php file in sublime 3 and save it to the htdocs?
12th Apr 2018, 2:00 AM
Someone Else
Someone Else - avatar