I'm very new to web development and I'm trying to create a php contact form. I'm trying to launch it on a xampp development server, but I can't seem to figure out how. according to this site, I need to type localhost then some options of files should show up. Well it doesn't, the xampp dashboard just shows up, and my files are in the htdocs folder. Am I opening them wrong or whats happening, I've been stuck on this for hours? Show asked Oct 31, 2017 at 3:18
8 First you need to start XAMPP. So, go to the drive where you install the XAMPP server. Generally, it's installed in
Then save it. And open your browser. And go to
Feel free to asking any question. Happy Coding!! answered Oct 31, 2017 at 5:28
acoderacoder 6995 silver badges19 bronze badges make sure your apache service on your XAMPP is running, if you using database, activate mysql too. and save your file in if your
file index.php, you can access it as if you make folder inside htdocs like you can access it as answered Oct 31, 2017 at 5:07
dianeryantodianeryanto 5722 gold badges5 silver badges16 bronze badges first check xampp is installed or not. check the Apache service is started or not. save your answered Oct 31, 2017 at 5:30
First of all, make sure that you don't have a file have the name "index" under htdocs folder. Then :
Done! You will find all files that exists on htdocs folder. Note : I proposed to use incognito to avoid cookies problem. XAMPP open files named index as default files ( You can change that setting ) . answered Sep 9, 2020 at 0:26
You need to either:
for option 2 you need to find "C:\xampp\htdocs\index.php" and:
I hope this helps, this is my first comment on a question, i believe the initial code is:
answered Jan 22, 2021 at 15:41
This maybe works. Go to "http://localhost/xampp/". answered May 27 at 11:06
1 Not the answer you're looking for? Browse other questions tagged php xampp localhost or ask your own question.How can I access PHP file in XAMPP?How to Run a PHP Code Using XAMPP?. Go to “C:\xampp\htdocs” and inside it, create a folder. ... . Inside the demo folder, create a new text file and name it “index. ... . Now, to see the script output, open the XAMPP control panel and start Apache to host the local webserver, where our script will be running.. How do I edit a PHP file?You can edit PHP files in any word processor or text editor, but word processors aren't designed to edit programming code. Instead, use a text editor with support for syntax highlighting, automatic indentation and bracket completion to efficiently edit PHP files.
Where can I edit PHP files?A PHP file is a plain text file, so you can open it in any text editor like VI, Notepad, or Sublime Text. For beginners, tools like Notepad++ should do, since they'll just be running small snippets of code.
Where are PHP files stored in XAMPP?Note: PHP program must be saved in the htdocs folder, which resides inside the xampp folder, where you installed the XAMPP. Otherwise it will generate an error - Object not found.
|