Skip to content

codeadamca/php-introduction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

php-introduction

A super basic introduction to PHP.

This tutorial will review the purpose of using a server-side language such as PHP and walk through the process of creating and testing your first PHP file. Here is how you use PHP to display a "Hello World" message:

<?php echo '<p>Hello World!</p>'; ?>

Steps

  1. Open up a new file and name it intro.php
  2. Fill the intro.php file with the standard HTML tags (doctype, html, head, body, and title)
  3. Add a heading use an HTML h1 tag
  4. In the body add an open and clode PHP tag (<?php and ?>)
  5. Within the PHP tags use echo to display the message "Hello World"
  6. Upload the PHP file to your server (or use your localhost) and test using a browser

Tutorial requirements:

Full tutorial URL: https://codeadam.ca/learning/php/php-introduction.html

Releases

No releases published

Packages

No packages published

Languages