"Hello World" Script in
<TITLE> First program <TITLE>
echo "Hello, World!";
VARIABLES IN PHP
All variables are
declared with leading
Variable can, but do not
need to be declared
PHP does a good job of
types from one to
DATE FUNCTION IN PHP
• Print date with time
EXAMPLE:DATE( “d-m-y h:m:s” );
• To set the time zone
• To get the time zone
ARRAYS IN PHP
• Numeric array
An array with a numeric index. Values are stored and accessed in
• Associative array
An array with strings as index. This stores element values in
association with key values rather than in a strict linear index order.
ORDER BY RAND()
FUNCTION IN MYSQL
• MySQL has a ORDER BY RAND()
function that can be used to randomize the
set of values.
• SELECT * FROM TABLE_NAME ORDER
WordPress is a free and open source blogging tool and a contentmanagement system based on PHP and MySQL.
WordPress is an OPEN SOURCE project, which means there are
hundreds of people all over the world working on it.
WordPress started as just a blogging system, but has evolved to
be used as full content management system and so much more
through the thousands of plugins and widgets and themes.
WordPress is limited only by your imagination.