+ 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â˜ș

17th Aug 2018, 1:37 PM
Seniru
Seniru - avatar
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
17th Aug 2018, 1:47 PM
Mayur Shedage
Mayur Shedage - avatar
+ 2
So what if i want to access php files via internet(i mean after published)? Do we have to use localhost or how?
17th Aug 2018, 2:21 PM
Seniru
Seniru - avatar
+ 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
19th Aug 2018, 8:14 AM
Femi
Femi - avatar