how to open php file in chrome using xampp?

Today, We want to share with you how to open php file in chrome.In this post we will show you how to run php file in browser, hear for how to run php file in localhost we will give you demo and example for implement.In this post, we will learn about Model View Controller(MVC) In PHP Hello World with an example.

how to open php file in chrome

Chrome is a very popular web browser. It is a fast, lightweight and user-friendly browser. It also has a built-in scripting language, which makes it easy to write your own scripts and extensions.

To open a php file in Chrome, first open the file in your favorite text editor. Once the file is open, copy the following code into the editor and save it as a file called “php.js”:

var php = require("php");"This is a php file");


Then, in Chrome, open the “Tools” menu and select “Extensions”. In the “Extensions” dialog box, select the “PHP” tab and click the “Install” button. The “PHP” extension will be installed and you will be able to open php files just like any other file.

how to open php file in chrome using xampp

simple first step you can Before run/execute any php program server side in the web browser like as a Microsoft Internet Explorer, Google Chrome, Mozilla Firefox, and Apple Safari i have to start a local server service.

For that i have to start apache server as well as it can be start by using xampp,wamp,lamp and mamp any types of the server

therefor, once our apache service gets started then i go in the browser (Explorer, Firefox, Netscape, and Safari)

and enter hostname with project name i.e. ->localhost/project_name/file_name.php

sometimes only localhost is not running properly.

therefor for that i have to change some types of the specific configuration setting and after that it runs properly including port number like 8080.

I hope you get an idea about how to open a php file in chrome.
I would like to have feedback on my blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Leave a Comment