Difference between revisions of "Sean Hoffman"
From WLCS
(→Hello, World) |
(→Completed Code) |
||
Line 45: | Line 45: | ||
?> | ?> | ||
</source> | </source> | ||
+ | |||
==== Working with Variables ==== | ==== Working with Variables ==== |
Revision as of 00:51, 17 January 2010
Contents
The Project
Description
Create several plugins using PHP for use with Wordpress and/or other blogging platforms Wordpress MU, BuddyPress, etc. Create graphically appealing website templates using PHP and Javascript, Ajax.
Details
- All templates and plugins will be compatible with the latest version of Wordpress
- Other compatible blogging systems may include the platforms listed below
- pHp plugins may include the following:
- Shopping Cart
- Photo Gallery
- Member System
- Dynamic News Rotator
Goals
These are the goals I hope to complete during the first quarter:
- Install PHP, MySql, Apache 2, and Wordpress on washlee.net server.
- Install PHP, MySql, Apache 2, and Wordpress locally on Ubuntu Jaunty
- Learn Basic and some Advanced Javascript
- Learn PHP
- Learn to communicate with MySQL using PHP
- Create several functional applications using Javascript and PHP
- Create a basic blog
Current Updates
- Due to some errors with Ubuntu I was unable to install LAMP on my local install of Ubuntu during the first quarter
- I was informed of another solution by Mr. Bui, XAMPP is similar to LAMP but it has PHP, MySQL, and Apache condensed into one program.
- XAMPP install was successful. I am now moving onto basic PHP tutorials. My first project will be creating a basic PHP Address Book
- I plan to use my netbook's install of dreamweaver to code and port the documents over to my Ubuntu install using a program called Dropbox.
Completed Code
Hello, World
Description: A basic beginner script that displays "Hello, world" in the browser window.
<?php
echo "?Hello world";
exit();
?>
Working with Variables
Description: "$myVariable" is assigned the string value of "Sean" that variable is then echoed to the browser printing "Hello, Sean." A conditional then checks to see if "$myVariable" is set as "Sean" if it is "Welcome Back!" will be printed, if it is not "Where's Sean?" will be printed.
<?php
$myVariable = 'Sean';
echo 'Hello, ' . $myVariable . '.';
if ($myVariable == 'Sean') {
print '<br/ >Welcome Back!';
} else {
print "<br/ >Where's Sean?";
}
?>
Resources
- How to install LAMP (Linux-Apache-MYSQL-PHP) - Ubuntu LAMP Installation Documentation
- How to install Wordpress - Wordpress Installation Documentation
- How to install XAMPP - Ubuntu XAMPP Installation Documentation
- Learn PHP from Scratch: A Training Regimen - Nettuts+ Tutorial
- Lynda.com : PHP With MySQL Essential Training Lynda.com
- PHP 101 : Down The Rabbit Hole DevZone Zend
- PHPBuddy.com : Your First PHP Code PHPBuddy.com
- PHP.NET : A Simple Tutorial PHP.NET
- W3Schools.com : PHP Tutorial W3Schools.com
- Dropbox - Dropbox Application