logo CBCE Skill INDIA

Welcome to CBCE Skill INDIA. An ISO 9001:2015 Certified Autonomous Body | Best Quality Computer and Skills Training Provider Organization. Established Under Indian Trust Act 1882, Govt. of India. Identity No. - IV-190200628, and registered under NITI Aayog Govt. of India. Identity No. - WB/2023/0344555. Also registered under Ministry of Micro, Small & Medium Enterprises - MSME (Govt. of India). Registration Number - UDYAM-WB-06-0031863

How to create PHP file in Notepad?


Create PHP file in Notepad

Creating a PHP file in Notepad is a simple process. Here are the steps you can follow:

  1. Open Notepad:

    • Press Win + R to open the Run dialog.
    • Type notepad and press Enter.
  2. Write PHP Code:

    • In Notepad, write your PHP code. For example:
      php
      <?php echo "Hello, World!"; ?>
  3. Save the File:

    • Go to File > Save As.
    • Choose the location where you want to save your PHP file.
    • In the "Save as type" dropdown, select "All Files (.)".
    • Enter a file name with the .php extension, for example, hello.php.
  4. Save Encoding:

    • It's recommended to save your PHP files with UTF-8 encoding. In the Save As dialog, you may find an "Encoding" dropdown. Choose UTF-8.
  5. Save the File:

    • Click the "Save" button.

 

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.

Popular Post:

Give us your feedback!

Your email address will not be published. Required fields are marked *
0 Comments Write Comment