+ 4
Running PHP Files
Hi friends! I have a problem in running PHP files. I tried adding .php extension when saving but it's not working. When I inspect those php codes are commented. Please help to solve this problem. Thanksâș
3 Answers
+ 3
You need apache server to run .php file so make sure you have apache server installed like xampp. and placed all php files in xampp/htdocs folder and then try to access php file. Like localhost/test.php
+ 2
So what if i want to access php files via internet(i mean after published)? Do we have to use localhost or how?
+ 2
Seniru Pasan
Download XAMPP and Install It then open it and Click on Start Apache and MySQL.
Its easier for you to run Apache Server and MySql.
If you get an error concerning port is used check the config files and search for port and change port number written there to 8080
Run it on your browser
By typing this in search bar:
localhost:8080