Iā€™m Dudley Storey, the author of Pro CSS3 Animation. This is my blog, where I talk about web design and development with , and . To receive more information, including news, updates, and tips, you should follow me on Twitter or add me on Google+.

web developer guide

my books

Book cover of Pro CSS3 AnimationPro CSS3 Animation, Apress, 2013

my other blogs

Massive Head Canon: Intelligent discussion of movies, books, games, and technology.

my projects

A Sass color keyword system for designers. Replaces CSS defaults with improved hues and more memorable, relevant color names.

CSSslidy: an auto-generated #RWD image slider. 3.8K of JS, no JQuery. Drop in images, add a line of CSS. Done.

tipster.ioAutomatically provides local tipping customs and percentages for services anywhere.

Basic requirements for a working PHP page

php / introduction

Estimated reading time: 48 seconds

To include PHP content, a web page must meet four criteria:

  1. The page name must have a suffix of .php. If you want to use a four-letter extension, use.phpx as the page name, where x is the version of PHP being used (for example, .php4 )

  2. You must have the page on a web server with PHP installed. (i.e. the URL must include http://). You can install server software on your own machine for testing purposes; this server will serve only you.

  3. PHP code must reside between opening and closing PHP tags on the page. Any code outside the tags will be interpreted as standard code (i.e. as HTML, CSS, or JavaScript, depending on the context).

    <? /* opening PHP tag
    closing PHP tag */ ?>

    This is also valid:

    <?php /* opening PHP tag
    closing PHP tag */ ?>
  4. The PHP code must be valid. Invalid PHP code will typically cause the page to stop displaying correctly, or not display at all.

comments powered by Disqus

This site helps millions of visitors while remaining ad-free. For less than the price of a cup of coffee, you can help pay for bandwidth and server costs while encouraging further articles.