Create PHP file in Notepad
Creating a PHP file in Notepad is a simple process. Here are the steps you can follow:
Open Notepad:
Win + R
to open the Run dialog.notepad
and press Enter.Write PHP Code:
echo "Hello, World!";
Save the File:
.php
extension, for example, hello.php
.Save Encoding:
Save the File:
Now, you've created a simple PHP file using Notepad. You can open this file in a web browser by running it through a local server (like Apache) or using an integrated development environment (IDE) specifically designed for PHP development.
Thank you.