Let's Get Started with a PHP include()
Page!
- Open Notepad++
- Choose:
File -> New
- Copy the PHP include Template (PHP) code (below)
- Paste that code into your new file
- Change the put-title-of-this-page-here, put-welcome-heading-here, and put-welcome-paragraph-here strings
- Click: File -> Save As
- Name your file: E:\public_html\include.php
- Change the
Save as type:
to: PHP Hypertext Preprocessor (*.php)
- Choose:
File -> New
- Copy the PHP inc_temp.php Template (PHP) code (below)
- Paste that code into your new file
- Click: File -> Save As
- Name your file: E:\public_html\inc_temp.php
- Change the
Save as type:
to: PHP Hypertext Preprocessor (*.php)
- Click: Save
- Visit your page (http://bscacad3.buffalostate.edu/include.php) in your favorite web browser
- Make any changes
- Save your changes
PHP include
Template (PHP)
PHP inc_temp.php
Template (PHP)
Output