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