Save and run a php file using XAMPP

A php file will not load in a web browser until it is saved in a specific path inside the XAMPP folder.

You need to save the php file that you created inside the htdocs folder in the XAMPP folder.

Commonly found the folder in the below path

C:\xampp\htdocs

Don't forget to save the file with an extension of .php

After saving the php file, open a web browser in your computer and type the following in the address bar.

http://localhost/filename.php

Here in the filename, you can set the file name of your php file and search it. Then you can see the output of your php code.


Prev
Next

Comments

Popular posts from this blog

Node.js Cheat Sheet

Enhancing Supply Chain Security and Cloud-Native Development with Chainguard

Codeigniter ! Simple But Powerful