User Tools

Site Tools


user:thakes3:portfolio:php:intro

Table of Contents

Intro

Synopsis

This is the very first time you have witnessed PHP code in action.

Overview

There are a few take aways to this code.

  • The php is embedded in an HTML document
  • It can be handled in line with HTML
  • It can store data and work with it in the document

Some things that are less apparent:

  • The code is run server side, all the load is happening on the server.

Functions

Functions being used in this code:

rand – a random number generator. Rand can generate a random integer, and you can pass it a high and low value to work of off.

user/thakes3/portfolio/php/intro.txt · Last modified: 2016/03/15 23:45 by thakes3