I am trying to learn PHP for the first time, I have installed XAMPP and checked the status on http://localhost and everything is working as they should be. But when I tried to call up documents I have saved on \xampp\htdocs, and called it up by typing http://localhost/sendingtext.php (sendingtext is the name of the doc) it did not work, just a 404 error message pops up.
origionaly, there was a index.html doc in the htdocs folder when I installed it, and I was able to call up by typing http://localhost/index.html on windows explorer, so I changed everything on my ‘sendingtext.php’ just the same as index.html. all the codes inside the doc, and even the php to html, but it still gives me a 404 error message when I try to open it. What am I doing wrong here?
When I opened the document (sendingtext.html) just manually by double clicking on it, it worked just fine.