Rebuilding...

ITP PHP Primer

1. Setting Up Apache, PHP, and MySQL

On Debian Linux
From the Command Line:
• apt-get install apache2 php5 libapache2-mod-php5
• apt-get install mysql-server mysql-client php5-mysql

On Mac OS X
• Web Sharing uses Apache. Enable it in System Preferences.
Download & Install Entropy PHP
Download & Install MySQL

On Windows
server2go

2. PHP

PHP is a widely-used general-purpose server side scripting language that is especially suited for web development and can be embedded into HTML.

PHP Basics
phpinfo();
Syntax
Variables
Operators
Conditional
Arrays
Loops
Functions
Predefined Variables
Predefined Functions
echo();

PHP Resources
php.net
w3schools
tizag

PHP / MySQL Tools
PHPMyAdmin

3. WordPress

WordPress is web software (built with PHP) that you can use to create a website or blog.

WordPress Basics
Database Description
Posts vs. Pages
Administrative Panels

WordPress Themes
Using Themes
Theme Development
  • Skeleton Theme
Templates
The Loop
  • The Loop In Action
Category Templates

WordPress Functions
get_header();
wp_query();
  • have_posts();
  • the_post();
the_content();
get_sidebar();
get_footer();