sirilyan dotcom > ( Personal | Articles | Links ) sirilyan dotcom
Articles > ( Index | www.teevee.org | www.techweb.com | www.perl.com )

php: a first look
sirilyan dotcom: articles: techweb: introduction to php

This page is a companion to the TechWeb article, Make Your Site Dynamic With PHP. You should read along with that article and look at the code samples available here. These code samples are also available for download as a ZIP or tar.gz archive.

The initial script will just include a PHP file where the filename matches the current date. [view source]

It's simple to modify your script to take a date from the user. [view source]

Some error checking rejects dates that aren't in YYYY-MM-DD format. [view source]

We add some functions to give us links to the next and previous web log entries. [view source]

Finally, we use these links to enrich the user navigation for our web log. [view source]


If you have any questions about this article, drop me a line. Be sure to read the excellent online PHP manual first, though. Your question may have already been answered.

sirilyan dotcom: articles: techweb.
anything said in lowercase sounds profound. say it to doug@sirilyan.com.