+ 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.
48 ответов
+ 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
+ 8
Download it, Open the .exe file and install it.
+ 8
If you want to use mysql database with php, just start the mysql server from the control panel.
+ 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.
+ 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
+ 7
There should be a folder icon on the right. Click that and then you should see the htdocs some where there
+ 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.
+ 6
There you can see all the server that xamp has. Click the start button next to apache server
+ 6
yes. Everything
+ 6
Did you use .php extension on your file?
+ 6
Can you post the url?
+ 6
type localhost in your browser
+ 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.
+ 6
Can you post the url address from your browser?
+ 5
yes
+ 5
You can uncheck not to install right?
+ 5
Yes.
+ 5
No ;). The files inside.
+ 5
Yes. When the htdocs folder ks empty you can start creating your own.
+ 1
Then after that do I just make s index.php file in sublime 3 and save it to the htdocs?