0

How do I make a php file run on my localhost

I've been trying to run php but it doesn't give me the output, it just returns the source code.

5th May 2020, 11:51 AM
Gottem
Gottem - avatar
3 Answers
+ 11
> Start your Wamp server. > Create your php file. > Save your file in www folder which you'll find inside wamp folder with .php extension. > Now open your browser, and type localhost/yourfilename.php Now your website will open through localhost.
5th May 2020, 12:12 PM
Nova
Nova - avatar
+ 1
Have you a local server ?
5th May 2020, 11:53 AM
HEUBA BATOMEN Franck Duval
HEUBA BATOMEN Franck Duval - avatar
+ 1
Wamp server or easy php?
5th May 2020, 11:54 AM
HEUBA BATOMEN Franck Duval
HEUBA BATOMEN Franck Duval - avatar