How to Save a PHP File as an HTML

How to Save a PHP File as an HTML thumbnail
PHP stands for Hypertext Preprocessor.

PHP allows you to create dynamic web pages. The code is embedded within HTML and uses its own processor component on the server to display the results. Saving a PHP document as HTML is a similar process to saving any file type.

Things You'll Need

  • Text editor
Show More

Instructions

    • 1

      Right-click on the PHP file you're looking to convert. Select "Open With" and "Notepad." If you're using a Mac, select "TextEdit."

    • 2

      Scan through the code to ensure it is formatted correctly. The actual text editor program will not convert any of the PHP, so everything should look normal.

    • 3

      Select "File" and "Save As" from your text editor's navigation menu.

    • 4

      Change Save as type to "All Files." Make sure Encoding is set to "ANSI." Then give your file a name. Don't use any spaces or special characters. End the file name with the extension .html.

    • 5

      Click on the "Save" button.

Tips & Warnings

  • Remember that not all PHP code will display correctly as an HTML file.

Related Searches:

References

Resources

  • Photo Credit code image by charles taylor from Fotolia.com

Comments

You May Also Like

Related Ads

Featured