<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1066058856285499993</id><updated>2012-02-16T02:56:23.607-08:00</updated><title type='text'>PHP and Web Design</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://saravananmarychezhiyan.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://saravananmarychezhiyan.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>chezhiyan</name><uri>http://www.blogger.com/profile/01455777242392052174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='http://1.bp.blogspot.com/_OG2OE19hbGc/SuPTRM0vRLI/AAAAAAAAAD8/EIiWelThIl0/S220/pmk.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>22</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1066058856285499993.post-6329760319631638391</id><published>2009-07-02T05:14:00.000-07:00</published><updated>2009-07-02T05:21:55.377-07:00</updated><title type='text'>PHP Math Introduction</title><content type='html'>&lt;p&gt;The math functions can handle values within the range of integer and float  types.&lt;/p&gt; &lt;hr /&gt;  &lt;h2&gt;Installation&lt;/h2&gt; &lt;p&gt;The math functions are part of the PHP core. There is no installation  needed to use these functions.&lt;/p&gt;&lt;h2&gt;PHP Math Constants&lt;/h2&gt; &lt;p&gt;&lt;b&gt;PHP&lt;/b&gt;: indicates the earliest version of PHP that supports the    constant. &lt;/p&gt;    &lt;table class="reference" border="1" cellpadding="0" cellspacing="0" width="100%"&gt;&lt;tbody&gt;&lt;tr&gt;     &lt;th align="left" width="30%"&gt;Constant&lt;/th&gt;     &lt;th align="left" width="65%"&gt;Description&lt;/th&gt;     &lt;th align="left" width="5%"&gt;PHP&lt;/th&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;M_E&lt;/td&gt;     &lt;td valign="top"&gt;Returns e (approx. 2.718)&lt;/td&gt;     &lt;td valign="top"&gt;4&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;M_EULER&lt;/td&gt;     &lt;td valign="top"&gt;Returns Euler's constant (approx. 0.577)&lt;/td&gt;     &lt;td valign="top"&gt;4&lt;/td&gt;   &lt;/tr&gt;  &lt;tr&gt;     &lt;td valign="top"&gt;M_LNPI&lt;/td&gt;     &lt;td valign="top"&gt;Returns the natural logarithm of PI (approx. 1.144)&lt;/td&gt;     &lt;td valign="top"&gt;4&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;M_LN2&lt;/td&gt;     &lt;td valign="top"&gt;Returns the natural logarithm of 2 (approx. 0.693)&lt;/td&gt;     &lt;td valign="top"&gt;4&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;M_LN10&lt;/td&gt;     &lt;td valign="top"&gt;Returns the natural logarithm of 10 (approx. 2.302)&lt;/td&gt;     &lt;td valign="top"&gt;4&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;M_LOG2E&lt;/td&gt;     &lt;td valign="top"&gt;Returns the base-2 logarithm of E (approx. 1.442)&lt;/td&gt;     &lt;td valign="top"&gt;4&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;M_LOG10E&lt;/td&gt;     &lt;td valign="top"&gt;Returns the base-10 logarithm of E (approx. 0.434)&lt;/td&gt;     &lt;td valign="top"&gt;4&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;M_PI&lt;/td&gt;     &lt;td valign="top"&gt;Returns PI (approx. 3.14159)&lt;/td&gt;     &lt;td valign="top"&gt;3&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;M_PI_2&lt;/td&gt;     &lt;td valign="top"&gt;Returns PI/2 (approx. 1.570)&lt;/td&gt;     &lt;td valign="top"&gt;4&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;M_PI_4&lt;/td&gt;     &lt;td valign="top"&gt;Returns PI/4 (approx. 0.785)&lt;/td&gt;     &lt;td valign="top"&gt;4&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;M_1_PI&lt;/td&gt;     &lt;td valign="top"&gt;Returns 1/PI (approx. 0.318)&lt;/td&gt;     &lt;td valign="top"&gt;4&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;M_2_PI&lt;/td&gt;     &lt;td valign="top"&gt;Returns 2/PI (approx. 0.636)&lt;/td&gt;     &lt;td valign="top"&gt;4&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;M_SQRTPI&lt;/td&gt;     &lt;td valign="top"&gt;Returns the square root of PI (approx. 1.772)&lt;/td&gt;     &lt;td valign="top"&gt;4&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;M_2_SQRTPI&lt;/td&gt;     &lt;td valign="top"&gt;Returns 2/square root of PI (approx. 1.128)&lt;/td&gt;     &lt;td valign="top"&gt;4&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;M_SQRT1_2&lt;/td&gt;     &lt;td valign="top"&gt;Returns the square root of 1/2 (approx. 0.707)&lt;/td&gt;     &lt;td valign="top"&gt;4&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;M_SQRT2&lt;/td&gt;     &lt;td valign="top"&gt;Returns the square root of 2 (approx. 1.414)&lt;/td&gt;     &lt;td valign="top"&gt;4&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;M_SQRT3&lt;/td&gt;     &lt;td valign="top"&gt;Returns the square root of 3 (approx. 1.732)&lt;/td&gt;     &lt;td valign="top"&gt;4&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1066058856285499993-6329760319631638391?l=saravananmarychezhiyan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saravananmarychezhiyan.blogspot.com/feeds/6329760319631638391/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1066058856285499993&amp;postID=6329760319631638391' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/6329760319631638391'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/6329760319631638391'/><link rel='alternate' type='text/html' href='http://saravananmarychezhiyan.blogspot.com/2009/07/php-miscellaneous-introduction.html' title='PHP Math Introduction'/><author><name>chezhiyan</name><uri>http://www.blogger.com/profile/01455777242392052174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='http://1.bp.blogspot.com/_OG2OE19hbGc/SuPTRM0vRLI/AAAAAAAAAD8/EIiWelThIl0/S220/pmk.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1066058856285499993.post-6554331359191845693</id><published>2009-07-01T03:57:00.000-07:00</published><updated>2009-07-01T04:04:39.829-07:00</updated><title type='text'>PHP MySQL Introduction</title><content type='html'>The MySQL functions allows you to access MySQL database servers.&lt;br /&gt;&lt;strong&gt;Installation&lt;/strong&gt;&lt;br /&gt;For the MySQL functions to be available, you must compile PHP with MySQL support.&lt;br /&gt;For compiling, use --with-mysql=DIR (the optional DIR points to the MySQL directory).&lt;br /&gt;&lt;strong&gt;Note:&lt;/strong&gt; For full functionality of MySQL versions greater than 4.1., use the MySQLi extension instead. If you would like to install both the mysql extension and the mysqli extension you should use the same client library to avoid any conflicts.&lt;br /&gt;Installation on Linux Systems&lt;br /&gt;&lt;strong&gt;PHP 5+:&lt;/strong&gt; MySQL and the MySQL library is not enabled by default. Use the --with-mysql=DIR configure option to include MySQL support and download headers and libraries from &lt;u&gt;&lt;strong&gt;mysql.com&lt;/strong&gt;&lt;strong&gt;.&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;&lt;strong&gt;Installation on Windows Systems&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;PHP 5+:&lt;/strong&gt; MySQL is not enabled by default, so the php_mysql.dll must be enabled inside of php.ini. Also, PHP needs access to the MySQL client library. A file named libmysql.dll is included in the Windows PHP distribution, and in order for PHP to talk to MySQL this file needs to be available to the Windows systems PATH.&lt;br /&gt;To enable any PHP extension, the PHP extension_dir setting (in the php.ini file) should be set to the directory where the PHP extensions are located. An example extension_dir value is c:\php\ext.&lt;br /&gt;&lt;strong&gt;Note:&lt;/strong&gt; If you get the following error when starting the web server: "Unable to load dynamic library './php_mysql.dll'", this is because php_mysql.dll or libmysql.dll cannot be found by the system.&lt;br /&gt;&lt;strong&gt;Runtime Configuration&lt;/strong&gt;&lt;br /&gt;The behavior of the MySQL functions is affected by settings in the php.ini file.&lt;br /&gt;&lt;strong&gt;MySQL configuration options:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Name    Default     Description      Changeable&lt;/strong&gt;&lt;br /&gt;mysql.allow_persistent&lt;br /&gt;"1"&lt;br /&gt;Whether or not to allow persistent connections&lt;br /&gt;PHP_INI_SYSTEM&lt;br /&gt;mysql.max_persistent&lt;br /&gt;"-1"&lt;br /&gt;The maximum number of persistent connections per process&lt;br /&gt;PHP_INI_SYSTEM&lt;br /&gt;mysql.max_links&lt;br /&gt;"-1"&lt;br /&gt;The maximum number of connections per process (persistent connections included)&lt;br /&gt;PHP_INI_SYSTEM&lt;br /&gt;mysql.trace_mode&lt;br /&gt;"0"&lt;br /&gt;Trace mode. When set to "1", warnings and SQL-errors will be displayed. Available since PHP 4.3&lt;br /&gt;PHP_INI_ALL&lt;br /&gt;mysql.default_port&lt;br /&gt;NULL&lt;br /&gt;The default TCP port number to use&lt;br /&gt;PHP_INI_ALL&lt;br /&gt;mysql.default_socket&lt;br /&gt;NULL&lt;br /&gt;The default socket name to use. Available since PHP 4.0.1&lt;br /&gt;PHP_INI_ALL&lt;br /&gt;mysql.default_host&lt;br /&gt;NULL&lt;br /&gt;The default server host to use (doesn't apply in SQL safe mode)&lt;br /&gt;PHP_INI_ALL&lt;br /&gt;mysql.default_user&lt;br /&gt;NULL&lt;br /&gt;The default user name to use (doesn't apply in SQL safe mode)&lt;br /&gt;PHP_INI_ALL&lt;br /&gt;mysql.default_password&lt;br /&gt;NULL&lt;br /&gt;The default password to use (doesn't apply in SQL safe mode)&lt;br /&gt;PHP_INI_ALL&lt;br /&gt;mysql.connect_timeout&lt;br /&gt;"60"&lt;br /&gt;Connection timeout in seconds&lt;br /&gt;PHP_INI_ALL&lt;br /&gt;&lt;strong&gt;Resource Types&lt;/strong&gt;&lt;br /&gt;There are two resource types used in the MySQL extension. The first one is the link_identifier for a database connection, the second is a resource which holds the result of a query.&lt;br /&gt;&lt;strong&gt;Note:&lt;/strong&gt; Most MySQL functions accept link_identifier as the last optional parameter. If it is not provided, the last opened connection is used.&lt;br /&gt;&lt;strong&gt;PHP MySQL Functions&lt;br /&gt;PHP:&lt;/strong&gt; indicates the earliest version of PHP that supports the function.&lt;br /&gt;&lt;strong&gt;Function           Description            PHP&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;mysql_affected_rows()&lt;/strong&gt;&lt;br /&gt;Returns the number of affected rows in the previous MySQL operation&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_change_user()&lt;/strong&gt;&lt;br /&gt;Deprecated. Changes the user of the current MySQL connection&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_client_encoding()&lt;/strong&gt;&lt;br /&gt;Returns the name of the character set for the current connection&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;mysql_close()&lt;/strong&gt;&lt;br /&gt;Closes a non-persistent MySQL connection&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_connect()&lt;/strong&gt;&lt;br /&gt;Opens a non-persistent MySQL connection&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_create_db()&lt;/strong&gt;&lt;br /&gt;Deprecated. Creates a new MySQL database. Use mysql_query() instead&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_data_seek()&lt;/strong&gt;&lt;br /&gt;Moves the record pointer&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_db_name()&lt;/strong&gt;&lt;br /&gt;Returns a database name from a call to mysql_list_dbs()&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_db_query()&lt;/strong&gt;&lt;br /&gt;Deprecated. Sends a MySQL query. Use mysql_select_db() and mysql_query() instead&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_drop_db()&lt;/strong&gt;&lt;br /&gt;Deprecated. Deletes a MySQL database. Use mysql_query() instead&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_errno()&lt;/strong&gt;&lt;br /&gt;Returns the error number of the last MySQL operation&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_error()&lt;/strong&gt;&lt;br /&gt;Returns the error description of the last MySQL operation&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_escape_string(&lt;/strong&gt;&lt;br /&gt;Deprecated. Escapes a string for use in a mysql_query. Use mysql_real_escape_string() instead&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;mysql_fetch_array()&lt;/strong&gt;&lt;br /&gt;Returns a row from a recordset as an associative array and/or a numeric array&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_fetch_assoc()&lt;/strong&gt;&lt;br /&gt;Returns a row from a recordset as an associative array&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;mysql_fetch_field()&lt;/strong&gt;&lt;br /&gt;Returns column info from a recordset as an object&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_fetch_lengths()&lt;/strong&gt;&lt;br /&gt;Returns the length of the contents of each field in a result row&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_fetch_object()&lt;/strong&gt;&lt;br /&gt;Returns a row from a recordset as an object&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_fetch_row()&lt;/strong&gt;&lt;br /&gt;Returns a row from a recordset as a numeric array&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_field_flags()&lt;/strong&gt;&lt;br /&gt;Returns the flags associated with a field in a recordset&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_field_len()&lt;/strong&gt;&lt;br /&gt;Returns the maximum length of a field in a recordset&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_field_name()&lt;/strong&gt;&lt;br /&gt;Returns the name of a field in a recordset&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_field_seek()&lt;/strong&gt;&lt;br /&gt;Moves the result pointer to a specified field&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_field_table()&lt;/strong&gt;&lt;br /&gt;Returns the name of the table the specified field is in&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_field_type()&lt;/strong&gt;&lt;br /&gt;Returns the type of a field in a recordset&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_free_result()&lt;/strong&gt;&lt;br /&gt;Free result memory&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_get_client_info()&lt;/strong&gt;&lt;br /&gt;Returns MySQL client info&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;mysql_get_host_info()&lt;/strong&gt;&lt;br /&gt;Returns MySQL host info&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;mysql_get_proto_info()&lt;/strong&gt;&lt;br /&gt;Returns MySQL protocol info&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;mysql_get_server_info()&lt;/strong&gt;&lt;br /&gt;Returns MySQL server info&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;mysql_info()&lt;/strong&gt;&lt;br /&gt;Returns information about the last query&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;mysql_insert_id()&lt;/strong&gt;&lt;br /&gt;Returns the AUTO_INCREMENT ID generated from the previous INSERT operation&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_list_dbs()&lt;/strong&gt;&lt;br /&gt;Lists available databases on a MySQL server&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_list_fields()&lt;/strong&gt;&lt;br /&gt;Deprecated. Lists MySQL table fields. Use mysql_query() instead&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_list_processes()&lt;/strong&gt;&lt;br /&gt;Lists MySQL processes&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;mysql_list_tables()&lt;/strong&gt;&lt;br /&gt;Deprecated. Lists tables in a MySQL database. Use mysql_query() instead&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_num_fields()&lt;/strong&gt;&lt;br /&gt;Returns the number of fields in a recordset&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_num_rows()&lt;/strong&gt;&lt;br /&gt;Returns the number of rows in a recordset&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_pconnect()&lt;/strong&gt;&lt;br /&gt;Opens a persistent MySQL connection&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_ping()&lt;/strong&gt;&lt;br /&gt;Pings a server connection or reconnects if there is no connection&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;mysql_query()&lt;/strong&gt;&lt;br /&gt;Executes a query on a MySQL database&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_real_escape_string()&lt;/strong&gt;&lt;br /&gt;Escapes a string for use in SQL statements&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;mysql_result()&lt;/strong&gt;&lt;br /&gt;Returns the value of a field in a recordset&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_select_db()&lt;/strong&gt;&lt;br /&gt;Sets the active MySQL database&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_stat()&lt;/strong&gt;&lt;br /&gt;Returns the current system status of the MySQL server&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;mysql_tablename()&lt;/strong&gt;&lt;br /&gt;Deprecated. Returns the table name of field. Use mysql_query() instead&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;mysql_thread_id()&lt;/strong&gt;&lt;br /&gt;Returns the current thread ID&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;mysql_unbuffered_query()&lt;/strong&gt;&lt;br /&gt;Executes a query on a MySQL database (without fetching / buffering the result)&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;PHP MySQL Constants&lt;/strong&gt;&lt;br /&gt;Since PHP 4.3 it has been possible to specify additional flags for the mysql_connect() and mysql_pconnect() functions:&lt;br /&gt;&lt;strong&gt;PHP:&lt;/strong&gt; indicates the earliest version of PHP that supports the constant.&lt;br /&gt;&lt;strong&gt;Constant            Description             PHP&lt;/strong&gt;&lt;br /&gt;MYSQL_CLIENT_COMPRESS&lt;br /&gt;Use compression protocol&lt;br /&gt;4.3&lt;br /&gt;MYSQL_CLIENT_IGNORE_SPACE&lt;br /&gt;Allow space after function names&lt;br /&gt;4.3&lt;br /&gt;MYSQL_CLIENT_INTERACTIVE&lt;br /&gt;Allow interactive timeout seconds of inactivity before closing the connection&lt;br /&gt;4.3&lt;br /&gt;MYSQL_CLIENT_SSL&lt;br /&gt;Use SSL encryption (only available with version 4+ of the MySQL client library)&lt;br /&gt;4.3&lt;br /&gt;The mysql_fetch_array() function uses a constant for the different types of result arrays. The following constants are defined:&lt;br /&gt;&lt;strong&gt;Constant           Description              PHP&lt;/strong&gt;&lt;br /&gt;MYSQL_ASSOC&lt;br /&gt;Columns are returned into the array with the fieldname as the array index&lt;br /&gt;&lt;br /&gt;MYSQL_BOTH&lt;br /&gt;Columns are returned into the array having both a numerical index and the fieldname as the array index&lt;br /&gt;&lt;br /&gt;MYSQL_NUM&lt;br /&gt;Columns are returned into the array having a numerical index (index starts at 0)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1066058856285499993-6554331359191845693?l=saravananmarychezhiyan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saravananmarychezhiyan.blogspot.com/feeds/6554331359191845693/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1066058856285499993&amp;postID=6554331359191845693' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/6554331359191845693'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/6554331359191845693'/><link rel='alternate' type='text/html' href='http://saravananmarychezhiyan.blogspot.com/2009/07/php-mysql-introduction.html' title='PHP MySQL Introduction'/><author><name>chezhiyan</name><uri>http://www.blogger.com/profile/01455777242392052174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='http://1.bp.blogspot.com/_OG2OE19hbGc/SuPTRM0vRLI/AAAAAAAAAD8/EIiWelThIl0/S220/pmk.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1066058856285499993.post-799653776824300599</id><published>2009-07-01T03:55:00.000-07:00</published><updated>2009-07-01T03:57:44.094-07:00</updated><title type='text'>PHP SimpleXML Introduction</title><content type='html'>The SimpleXML functions lets you convert XML to an object.&lt;br /&gt;              This object can be processed, like any other object, with normal property selectors and array iterators.&lt;br /&gt;              Some of these functions requires the newest PHP build.&lt;br /&gt;&lt;strong&gt;Installation&lt;/strong&gt;&lt;br /&gt;The SimpleXML functions are part of the PHP core. There is no installation needed to use these functions.&lt;br /&gt;&lt;strong&gt;PHP SimpleXML Functions&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;PHP:&lt;/strong&gt; indicates the earliest version of PHP that supports the function.&lt;br /&gt;&lt;strong&gt;Function          Description            PHP&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;construct()&lt;/strong&gt;&lt;br /&gt;Creates a new SimpleXMLElement object&lt;br /&gt;5&lt;br /&gt;&lt;strong&gt;addAttribute()&lt;/strong&gt;&lt;br /&gt;Adds an attribute to the SimpleXML element&lt;br /&gt;5&lt;br /&gt;&lt;strong&gt;addChild()&lt;/strong&gt;&lt;br /&gt;Adds a child element the SimpleXML element&lt;br /&gt;5&lt;br /&gt;&lt;strong&gt;asXML()&lt;/strong&gt;&lt;br /&gt;Gets an XML string from a SimpleXML element&lt;br /&gt;5&lt;br /&gt;&lt;strong&gt;attributes()&lt;/strong&gt;&lt;br /&gt;Gets a SimpleXML element's attributes&lt;br /&gt;5&lt;br /&gt;&lt;strong&gt;children()&lt;/strong&gt;&lt;br /&gt;Gets the children of a specified node&lt;br /&gt;5&lt;br /&gt;&lt;strong&gt;getDocNamespaces()&lt;/strong&gt;&lt;br /&gt;Gets the namespaces of an XML document&lt;br /&gt;5&lt;br /&gt;&lt;strong&gt;getName()&lt;/strong&gt;&lt;br /&gt;Gets the name of a SimpleXML element&lt;br /&gt;5&lt;br /&gt;&lt;strong&gt;getNamespaces()&lt;/strong&gt;&lt;br /&gt;Gets the namespaces from XML data&lt;br /&gt;5&lt;br /&gt;&lt;strong&gt;registerXPathNamespace()&lt;/strong&gt;&lt;br /&gt;Creates a namespace context for the next XPath query&lt;br /&gt;5&lt;br /&gt;&lt;strong&gt;simplexml_import_dom()&lt;/strong&gt;&lt;br /&gt;Gets a SimpleXMLElement object from a DOM node&lt;br /&gt;5&lt;br /&gt;&lt;strong&gt;simplexml_load_file()&lt;/strong&gt;&lt;br /&gt;Gets a SimpleXMLElement object from an XML document&lt;br /&gt;5&lt;br /&gt;&lt;strong&gt;simplexml_load_string()&lt;/strong&gt;&lt;br /&gt;Gets a SimpleXMLElement object from an XML string&lt;br /&gt;5&lt;br /&gt;&lt;strong&gt;xpath()&lt;/strong&gt;&lt;br /&gt;Runs an XPath query on XML data&lt;br /&gt;5&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1066058856285499993-799653776824300599?l=saravananmarychezhiyan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saravananmarychezhiyan.blogspot.com/feeds/799653776824300599/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1066058856285499993&amp;postID=799653776824300599' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/799653776824300599'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/799653776824300599'/><link rel='alternate' type='text/html' href='http://saravananmarychezhiyan.blogspot.com/2009/07/php-simplexml-introduction.html' title='PHP SimpleXML Introduction'/><author><name>chezhiyan</name><uri>http://www.blogger.com/profile/01455777242392052174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='http://1.bp.blogspot.com/_OG2OE19hbGc/SuPTRM0vRLI/AAAAAAAAAD8/EIiWelThIl0/S220/pmk.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1066058856285499993.post-6737707057368104658</id><published>2009-07-01T03:47:00.000-07:00</published><updated>2009-07-01T03:55:15.603-07:00</updated><title type='text'>PHP String Introduction</title><content type='html'>The string functions allow you to manipulate strings.&lt;br /&gt;&lt;strong&gt;Installation&lt;/strong&gt;&lt;br /&gt;The string functions are part of the PHP core. There is no installation needed to use these functions.&lt;br /&gt;&lt;strong&gt;PHP String Functions&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;PHP:&lt;/strong&gt; indicates the earliest version of PHP that supports the function.&lt;br /&gt;&lt;strong&gt;Function           Description              PHP&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;addcslashes()&lt;/strong&gt;&lt;br /&gt;Returns a string with backslashes in front of the specified characters&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;addslashes()&lt;/strong&gt;&lt;br /&gt;Returns a string with backslashes in front of predefined characters&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;bin2hex()&lt;/strong&gt;&lt;br /&gt;Converts a string of ASCII characters to hexadecimal values&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;chop()&lt;/strong&gt;&lt;br /&gt;Alias of rtrim()&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;chr()&lt;/strong&gt;&lt;br /&gt;Returns a character from a specified ASCII value&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;chunk_split()&lt;/strong&gt;&lt;br /&gt;Splits a string into a series of smaller parts&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;convert_cyr_string()&lt;/strong&gt;&lt;br /&gt;Converts a string from one Cyrillic character-set to another&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;convert_uudecode()&lt;/strong&gt;&lt;br /&gt;Decodes a uuencoded string&lt;br /&gt;5&lt;br /&gt;&lt;strong&gt;convert_uuencode()&lt;/strong&gt;&lt;br /&gt;Encodes a string using the uuencode algorithm&lt;br /&gt;5&lt;br /&gt;&lt;strong&gt;count_chars()&lt;/strong&gt;&lt;br /&gt;Returns how many times an ASCII character occurs within a string and returns the information&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;crc32()&lt;/strong&gt;&lt;br /&gt;Calculates a 32-bit CRC for a string&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;crypt()&lt;/strong&gt;&lt;br /&gt;One-way string encryption (hashing)&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;echo()&lt;/strong&gt;&lt;br /&gt;Outputs strings&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;explode()&lt;/strong&gt;&lt;br /&gt;Breaks a string into an array&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;fprintf()&lt;/strong&gt;&lt;br /&gt;Writes a formatted string to a specified output stream&lt;br /&gt;5&lt;br /&gt;&lt;strong&gt;get_html_translation_table()&lt;/strong&gt;&lt;br /&gt;Returns the translation table used by htmlspecialchars() and htmlentities()&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;hebrev()&lt;/strong&gt;&lt;br /&gt;Converts Hebrew text to visual text&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;hebrevc()&lt;/strong&gt;&lt;br /&gt;Converts Hebrew text to visual text and new lines (\n) into &lt;br /&gt;&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;html_entity_decode()&lt;/strong&gt;&lt;br /&gt;Converts HTML entities to characters&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;htmlentities()&lt;/strong&gt;&lt;br /&gt;Converts characters to HTML entities&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;htmlspecialchars_decode()&lt;/strong&gt;&lt;br /&gt;Converts some predefined HTML entities to characters&lt;br /&gt;5&lt;br /&gt;&lt;strong&gt;htmlspecialchars()&lt;/strong&gt;&lt;br /&gt;Converts some predefined characters to HTML entities&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;implode()&lt;/strong&gt;&lt;br /&gt;Returns a string from the elements of an array&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;join()&lt;/strong&gt;&lt;br /&gt;Alias of implode()&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;levenshtein()&lt;/strong&gt;&lt;br /&gt;Returns the Levenshtein distance between two strings&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;localeconv()&lt;/strong&gt;&lt;br /&gt;Returns locale numeric and monetary formatting information&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;ltrim()&lt;/strong&gt;&lt;br /&gt;Strips whitespace from the left side of a string&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;md5()&lt;/strong&gt;&lt;br /&gt;Calculates the MD5 hash of a string&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;md5_file()&lt;/strong&gt;&lt;br /&gt;Calculates the MD5 hash of a file&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;metaphone()&lt;/strong&gt;&lt;br /&gt;Calculates the metaphone key of a string&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;money_format()&lt;/strong&gt;&lt;br /&gt;Returns a string formatted as a currency string&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;nl_langinfo()&lt;/strong&gt;&lt;br /&gt;Returns specific local information&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;nl2br()&lt;/strong&gt;&lt;br /&gt;Inserts HTML line breaks in front of each newline in a string&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;number_format()&lt;/strong&gt;&lt;br /&gt;Formats a number with grouped thousands&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;ord()&lt;/strong&gt;&lt;br /&gt;Returns the ASCII value of the first character of a string&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;parse_str()&lt;/strong&gt;&lt;br /&gt;Parses a query string into variables&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;print()&lt;/strong&gt;&lt;br /&gt;Outputs a string&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;printf()&lt;/strong&gt;&lt;br /&gt;Outputs a formatted string&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;quoted_printable_decode()&lt;/strong&gt;&lt;br /&gt;Decodes a quoted-printable string&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;quotemeta()&lt;/strong&gt;&lt;br /&gt;Quotes meta characters&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;rtrim()&lt;/strong&gt;&lt;br /&gt;Strips whitespace from the right side of a string&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;setlocale()&lt;/strong&gt;&lt;br /&gt;Sets locale information&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;sha1()&lt;/strong&gt;&lt;br /&gt;Calculates the SHA-1 hash of a string&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;sha1_file()&lt;/strong&gt;&lt;br /&gt;Calculates the SHA-1 hash of a file&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;similar_text()&lt;/strong&gt;&lt;br /&gt;Calculates the similarity between two strings&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;soundex()&lt;/strong&gt;&lt;br /&gt;Calculates the soundex key of a string&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;sprintf()&lt;/strong&gt;&lt;br /&gt;Writes a formatted string to a variable&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;sscanf()&lt;/strong&gt;&lt;br /&gt;Parses input from a string according to a format&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;str_ireplace()&lt;/strong&gt;&lt;br /&gt;Replaces some characters in a string (case-insensitive)&lt;br /&gt;5&lt;br /&gt;&lt;strong&gt;str_pad()&lt;/strong&gt;&lt;br /&gt;Pads a string to a new length&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;str_repeat()&lt;/strong&gt;&lt;br /&gt;Repeats a string a specified number of times&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;str_replace()&lt;/strong&gt;&lt;br /&gt;Replaces some characters in a string (case-sensitive)&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;str_rot13()&lt;/strong&gt;&lt;br /&gt;Performs the ROT13 encoding on a string&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;str_shuffle()&lt;/strong&gt;&lt;br /&gt;Randomly shuffles all characters in a string&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;str_split()&lt;/strong&gt;&lt;br /&gt;Splits a string into an array&lt;br /&gt;5&lt;br /&gt;&lt;strong&gt;str_word_count()&lt;/strong&gt;&lt;br /&gt;Count the number of words in a string&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;strcasecmp()&lt;/strong&gt;&lt;br /&gt;Compares two strings (case-insensitive)&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;strchr()&lt;/strong&gt;&lt;br /&gt;Finds the first occurrence of a string inside another string (alias of strstr())&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;strcmp()&lt;/strong&gt;&lt;br /&gt;Compares two strings (case-sensitive)&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;strcoll()&lt;/strong&gt;&lt;br /&gt;Locale based string comparison&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;strcspn()&lt;/strong&gt;&lt;br /&gt;Returns the number of characters found in a string before any part of some specified characters are found&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;strip_tags()&lt;/strong&gt;&lt;br /&gt;Strips HTML and PHP tags from a string&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;stripcslashes()&lt;/strong&gt;&lt;br /&gt;Unquotes a string quoted with addcslashes()&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;stripslashes()&lt;/strong&gt;&lt;br /&gt;Unquotes a string quoted with addslashes()&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;stripos()&lt;/strong&gt;&lt;br /&gt;Returns the position of the first occurrence of a string inside another string (case-insensitive)&lt;br /&gt;5&lt;br /&gt;&lt;strong&gt;stristr()&lt;/strong&gt;&lt;br /&gt;Finds the first occurrence of a string inside another string (case-insensitive)&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;strlen()&lt;/strong&gt;&lt;br /&gt;Returns the length of a string&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;strnatcasecmp()&lt;/strong&gt;&lt;br /&gt;Compares two strings using a "natural order" algorithm (case-insensitive)&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;strnatcmp()&lt;/strong&gt;&lt;br /&gt;Compares two strings using a "natural order" algorithm (case-sensitive)&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;strncasecmp()&lt;/strong&gt;&lt;br /&gt;String comparison of the first n characters (case-insensitive)&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;strncmp()&lt;/strong&gt;&lt;br /&gt;String comparison of the first n characters (case-sensitive)&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;strpbrk()&lt;/strong&gt;&lt;br /&gt;Searches a string for any of a set of characters&lt;br /&gt;5&lt;br /&gt;&lt;strong&gt;strpos()&lt;/strong&gt;&lt;br /&gt;Returns the position of the first occurrence of a string inside another string (case-sensitive)&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;strrchr()&lt;/strong&gt;&lt;br /&gt;Finds the last occurrence of a string inside another string&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;strrev()&lt;/strong&gt;&lt;br /&gt;Reverses a string&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;strripos()&lt;/strong&gt;&lt;br /&gt;Finds the position of the last occurrence of a string inside another string (case-insensitive)&lt;br /&gt;5&lt;br /&gt;&lt;strong&gt;strrpos()&lt;/strong&gt;&lt;br /&gt;Finds the position of the last occurrence of a string inside another string (case-sensitive)&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;strspn()&lt;/strong&gt;&lt;br /&gt;Returns the number of characters found in a string that contains only characters from a specified charlist&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;strstr()&lt;/strong&gt;&lt;br /&gt;Finds the first occurrence of a string inside another string (case-sensitive)&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;strtok()&lt;/strong&gt;&lt;br /&gt;Splits a string into smaller strings&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;strtolower()&lt;/strong&gt;&lt;br /&gt;Converts a string to lowercase letters&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;strtoupper()&lt;/strong&gt;&lt;br /&gt;Converts a string to uppercase letters&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;strtr()&lt;/strong&gt;&lt;br /&gt;Translates certain characters in a string&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;substr()&lt;/strong&gt;&lt;br /&gt;Returns a part of a string&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;substr_compare()&lt;/strong&gt;&lt;br /&gt;Compares two strings from a specified start position (binary safe and optionally case-sensitive)&lt;br /&gt;5&lt;br /&gt;&lt;strong&gt;substr_count()&lt;/strong&gt;&lt;br /&gt;Counts the number of times a substring occurs in a string&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;substr_replace()&lt;/strong&gt;&lt;br /&gt;Replaces a part of a string with another string&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;trim()&lt;/strong&gt;&lt;br /&gt;Strips whitespace from both sides of a string&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;ucfirst()&lt;/strong&gt;&lt;br /&gt;Converts the first character of a string to uppercase&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;ucwords()&lt;/strong&gt;&lt;br /&gt;Converts the first character of each word in a string to uppercase&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;vfprintf()&lt;/strong&gt;&lt;br /&gt;Writes a formatted string to a specified output stream&lt;br /&gt;5&lt;br /&gt;&lt;strong&gt;vprintf()&lt;/strong&gt;&lt;br /&gt;Outputs a formatted string&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;vsprintf()&lt;/strong&gt;&lt;br /&gt;Writes a formatted string to a variable&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;wordwrap()&lt;/strong&gt;&lt;br /&gt;Wraps a string to a given number of characters&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;PHP String Constants&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;PHP:&lt;/strong&gt; indicates the earliest version of PHP that supports the constant.&lt;br /&gt;&lt;strong&gt;Constant          Description            PHP&lt;/strong&gt;&lt;br /&gt;CRYPT_SALT_LENGTH&lt;br /&gt;&lt;br /&gt;Contains the length of the default encryption method for thesystem. For standard DES encryption, the length is 2&lt;br /&gt;&lt;br /&gt;CRYPT_STD_DES&lt;br /&gt;&lt;br /&gt;Set to 1 if the standard DES-based encryption with a 2 character salt is supported, 0 otherwise&lt;br /&gt;&lt;br /&gt;CRYPT_EXT_DES&lt;br /&gt;&lt;br /&gt;Set to 1 if the extended DES-based encryption with a 9 character salt is supported, 0 otherwise&lt;br /&gt;&lt;br /&gt;CRYPT_MD5&lt;br /&gt;&lt;br /&gt;Set to 1 if the MD5 encryption with a 12 character salt starting with $1$ is supported, 0 otherwise&lt;br /&gt;&lt;br /&gt;CRYPT_BLOWFISH&lt;br /&gt;&lt;br /&gt;Set to 1 if the Blowfish encryption with a 16 character salt starting with $2$ or $2a$ is supported, 0 otherwise0&lt;br /&gt;&lt;br /&gt;HTML_SPECIALCHARS&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;HTML_ENTITIES&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ENT_COMPAT&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ENT_QUOTES&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ENT_NOQUOTES&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CHAR_MAX&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;LC_CTYPE&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;LC_NUMERIC&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;LC_TIME&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;LC_COLLATE&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;LC_MONETARY&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;LC_ALL&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;LC_MESSAGES&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;STR_PAD_LEFT&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;STR_PAD_RIGHT&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;STR_PAD_BOTH&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1066058856285499993-6737707057368104658?l=saravananmarychezhiyan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saravananmarychezhiyan.blogspot.com/feeds/6737707057368104658/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1066058856285499993&amp;postID=6737707057368104658' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/6737707057368104658'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/6737707057368104658'/><link rel='alternate' type='text/html' href='http://saravananmarychezhiyan.blogspot.com/2009/07/php-string-introduction.html' title='PHP String Introduction'/><author><name>chezhiyan</name><uri>http://www.blogger.com/profile/01455777242392052174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='http://1.bp.blogspot.com/_OG2OE19hbGc/SuPTRM0vRLI/AAAAAAAAAD8/EIiWelThIl0/S220/pmk.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1066058856285499993.post-3936222947504809550</id><published>2009-07-01T03:42:00.000-07:00</published><updated>2009-07-01T03:47:02.927-07:00</updated><title type='text'>PHP XML Parser Introduction</title><content type='html'>The XML functions lets you parse, but not validate, XML documents.&lt;br /&gt;              XML is a data format for standardized structured document exchange. More information on XML can be found in our&lt;strong&gt; &lt;/strong&gt;&lt;strong&gt;XML Tutorial&lt;/strong&gt;&lt;strong&gt;.&lt;br /&gt;&lt;/strong&gt;              This extension uses the Expat XML parser.&lt;br /&gt;              Expat is an event-based parser, it views an XML document as a series of events. When an event occurs, it calls a specified function to handle it.&lt;br /&gt;              Expat is a non-validating parser, and ignores any DTDs linked to a document. However, if the document is not well formed it will end with an error message.&lt;br /&gt;              Because it is an event-based, non validating parser, Expat is fast and well suited for web applications.&lt;br /&gt;             The XML parser functions lets you create XML parsers and define handlers for XML events.&lt;br /&gt;&lt;strong&gt;Installation&lt;/strong&gt;&lt;br /&gt;The XML functions are part of the PHP core. There is no installation needed to use these functions.&lt;br /&gt;&lt;strong&gt;PHP XML Parser Functions&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;PHP:&lt;/strong&gt; indicates the earliest version of PHP that supports the function.&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;Function       Description          PHP&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;utf8_decode()&lt;/strong&gt;&lt;br /&gt;Decodes an UTF-8 string to ISO-8859-1&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;utf8_encode()&lt;/strong&gt;&lt;br /&gt;Encodes an ISO-8859-1 string to UTF-8&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;xml_error_string()&lt;/strong&gt;&lt;br /&gt;Gets an error string from the XML parser&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;xml_get_current_byte_index()&lt;/strong&gt;&lt;br /&gt;Gets the current byte index from the XML parser&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;xml_get_current_column_number()&lt;/strong&gt;&lt;br /&gt;Gets the current column number from the XML parser&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;xml_get_current_line_number()&lt;/strong&gt;&lt;br /&gt;Gets the current line number from the XML parser&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;xml_get_error_code()&lt;/strong&gt;&lt;br /&gt;Gets an error code from the XML parser&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;xml_parse()&lt;/strong&gt;&lt;br /&gt;Parses an XML document&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;xml_parse_into_struct()&lt;/strong&gt;&lt;br /&gt;Parse XML data into an array&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;xml_parser_create_ns()&lt;/strong&gt;&lt;br /&gt;Create an XML parser with namespace support&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;xml_parser_create()&lt;/strong&gt;&lt;br /&gt;Create an XML parser&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;xml_parser_free()&lt;/strong&gt;&lt;br /&gt;Free an XML parser&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;xml_parser_get_option()&lt;/strong&gt;&lt;br /&gt;Get options from an XML parser&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;xml_parser_set_option()&lt;/strong&gt;&lt;br /&gt;Set options in an XML parser&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;xml_set_character_data_handler()&lt;/strong&gt;&lt;br /&gt;Set handler function for character data&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;xml_set_default_handler()&lt;/strong&gt;&lt;br /&gt;Set default handler function&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;xml_set_element_handler()&lt;/strong&gt;&lt;br /&gt;Set handler function for start and end element of elements&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;xml_set_end_namespace_decl_handler()&lt;/strong&gt;&lt;br /&gt;Set handler function for the end of namespace declarations&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;xml_set_external_entity_ref_handler()&lt;/strong&gt;&lt;br /&gt;Set handler function for external entities&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;xml_set_notation_decl_handler()&lt;/strong&gt;&lt;br /&gt;Set handler function for notation declarations&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;xml_set_object()&lt;/strong&gt;&lt;br /&gt;Use XML Parser within an object&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;xml_set_processing_instruction_handler()&lt;/strong&gt;&lt;br /&gt;Set handler function for processing instruction&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;xml_set_start_namespace_decl_handler()&lt;/strong&gt;&lt;br /&gt;Set handler function for the start of namespace declarations&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;xml_set_unparsed_entity_decl_handler()&lt;/strong&gt;&lt;br /&gt;Set handler function for unparsed entity declarations&lt;br /&gt;3&lt;br /&gt;&lt;strong&gt;PHP XML Parser Constants&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;Constant&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;XML_ERROR_NONE (integer)&lt;br /&gt;XML_ERROR_NO_MEMORY (integer)&lt;br /&gt;XML_ERROR_SYNTAX (integer)&lt;br /&gt;XML_ERROR_NO_ELEMENTS (integer)&lt;br /&gt;XML_ERROR_INVALID_TOKEN (integer)&lt;br /&gt;XML_ERROR_UNCLOSED_TOKEN (integer)&lt;br /&gt;XML_ERROR_PARTIAL_CHAR (integer)&lt;br /&gt;XML_ERROR_TAG_MISMATCH (integer)&lt;br /&gt;XML_ERROR_DUPLICATE_ATTRIBUTE (integer)&lt;br /&gt;XML_ERROR_JUNK_AFTER_DOC_ELEMENT (integer)&lt;br /&gt;XML_ERROR_PARAM_ENTITY_REF (integer)&lt;br /&gt;XML_ERROR_UNDEFINED_ENTITY (integer)&lt;br /&gt;XML_ERROR_RECURSIVE_ENTITY_REF (integer)&lt;br /&gt;XML_ERROR_ASYNC_ENTITY (integer)&lt;br /&gt;XML_ERROR_BAD_CHAR_REF (integer)&lt;br /&gt;XML_ERROR_BINARY_ENTITY_REF (integer)&lt;br /&gt;XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF (integer)&lt;br /&gt;XML_ERROR_MISPLACED_XML_PI (integer)&lt;br /&gt;XML_ERROR_UNKNOWN_ENCODING (integer)&lt;br /&gt;XML_ERROR_INCORRECT_ENCODING (integer)&lt;br /&gt;XML_ERROR_UNCLOSED_CDATA_SECTION (integer)&lt;br /&gt;XML_ERROR_EXTERNAL_ENTITY_HANDLING (integer)&lt;br /&gt;XML_OPTION_CASE_FOLDING (integer)&lt;br /&gt;XML_OPTION_TARGET_ENCODING (integer)&lt;br /&gt;XML_OPTION_SKIP_TAGSTART (integer)&lt;br /&gt;XML_OPTION_SKIP_WHITE (integer)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1066058856285499993-3936222947504809550?l=saravananmarychezhiyan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saravananmarychezhiyan.blogspot.com/feeds/3936222947504809550/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1066058856285499993&amp;postID=3936222947504809550' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/3936222947504809550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/3936222947504809550'/><link rel='alternate' type='text/html' href='http://saravananmarychezhiyan.blogspot.com/2009/07/php-xml-parser-introduction.html' title='PHP XML Parser Introduction'/><author><name>chezhiyan</name><uri>http://www.blogger.com/profile/01455777242392052174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='http://1.bp.blogspot.com/_OG2OE19hbGc/SuPTRM0vRLI/AAAAAAAAAD8/EIiWelThIl0/S220/pmk.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1066058856285499993.post-3756910170150543620</id><published>2009-07-01T03:10:00.000-07:00</published><updated>2009-07-01T03:41:58.991-07:00</updated><title type='text'>PHP Zip File Introduction</title><content type='html'>The Zip files functions allows you to read ZIP files.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Installation&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;            For the Zip file functions to work on your server, these libraries must be installed:&lt;br /&gt;            The ZZIPlib library by Guido Draheim: &lt;strong&gt;Download the ZZIPlib library&lt;/strong&gt;&lt;br /&gt;            The Zip PELC extension: &lt;strong&gt;Download the Zip PELC extension&lt;br /&gt;Installation on Linux Systems&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;PHP 5+:&lt;/strong&gt;&lt;br /&gt;                  Zip functions and the Zip library is not enabled by default and must be downloaded from the links above. Use the --with-zip=DIR configure option to include Zip support.&lt;br /&gt;Installation on Windows Systems&lt;br /&gt;&lt;strong&gt;PHP 5+:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;                &lt;/strong&gt; Zip functions is not enabled by default, so the php_zip.dll and the ZZIPlib library must be downloaded from the link above. php_zip.dll must be enabled inside of php.ini.&lt;br /&gt;To enable any PHP extension, the PHP extension_dir setting (in the php.ini file) should be set to the directory where the PHP extensions are located. An example extension_dir value is c:\php\ext.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;PHP Zip File Functions&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;PHP:&lt;/strong&gt; indicates the earliest version of PHP that supports the function.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;Function           Description             PHP&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;zip_close()&lt;/strong&gt;&lt;br /&gt;Closes a ZIP file&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;zip_entry_close()&lt;/strong&gt;&lt;br /&gt;Closes an entry in the ZIP file&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;zip_entry_compressedsize()&lt;/strong&gt;&lt;br /&gt;Returns the compressed size of an entry in the ZIP file&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;zip_entry_compressionmethod()&lt;/strong&gt;&lt;br /&gt;Returns the compression method of an entry in the ZIP file&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;zip_entry_filesize()&lt;/strong&gt;&lt;br /&gt;Returns the actual file size of an entry in the ZIP file&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;zip_entry_name()&lt;/strong&gt;&lt;br /&gt;Returns the name of an entry in the ZIP file&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;zip_entry_open()&lt;/strong&gt;&lt;br /&gt;Opens an entry in the ZIP file for reading&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;zip_entry_read()&lt;/strong&gt;&lt;br /&gt;Reads from an open entry in the ZIP file&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;zip_open()&lt;/strong&gt;&lt;br /&gt;Opens a ZIP file&lt;br /&gt;4&lt;br /&gt;&lt;strong&gt;zip_read()&lt;/strong&gt;&lt;br /&gt;Reads the next entry in a ZIP file&lt;br /&gt;4&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1066058856285499993-3756910170150543620?l=saravananmarychezhiyan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saravananmarychezhiyan.blogspot.com/feeds/3756910170150543620/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1066058856285499993&amp;postID=3756910170150543620' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/3756910170150543620'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/3756910170150543620'/><link rel='alternate' type='text/html' href='http://saravananmarychezhiyan.blogspot.com/2009/07/php-zip-file-introduction.html' title='PHP Zip File Introduction'/><author><name>chezhiyan</name><uri>http://www.blogger.com/profile/01455777242392052174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='http://1.bp.blogspot.com/_OG2OE19hbGc/SuPTRM0vRLI/AAAAAAAAAD8/EIiWelThIl0/S220/pmk.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1066058856285499993.post-5165036437165638673</id><published>2009-06-21T20:17:00.000-07:00</published><updated>2009-06-21T21:13:48.083-07:00</updated><title type='text'>Introduction to PHP &amp; MySQL</title><content type='html'>&lt;strong&gt;&lt;span style="font-size:130%;"&gt;PHP Training Overview&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;MySQL™ and PHP are two of the most popular open source technologies to emerge during the past decade. PHP is a powerful language for writing server-side Web applications. MySQL is the world's most popular open source database. Together, these two technologies provide you with a powerful platform for building database-driven Web applications.&lt;br /&gt;This hands-on MySQL and PHP training course teaches attendees everything they need to successfully build data-driven Web sites using MySQL and PHP.&lt;br /&gt;Accelebrate also offers an &lt;strong&gt;Advanced PHP training&lt;/strong&gt;&lt;strong&gt; class&lt;/strong&gt;.&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;Important Note:&lt;/span&gt;&lt;/strong&gt; Upon request, we would be glad to teach this course with a database other than MySQL.&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;Location and Pricing&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Most Accelebrate courses are taught on-site at our clients' locations worldwide for groups of 3 or more attendees and are customized to their specific needs. Please visit our &lt;strong&gt;client list&lt;/strong&gt; to see organizations for whom we have recently delivered training. These courses can also be delivered as live, private online classes for groups that are geographically dispersed or wish to save on the instructor’s or students’ travel expenses. To receive a customized proposal and price quote private training at your site or online.&lt;br /&gt;In addition, some courses are available as live, online classes for individuals. To see a schedule of online courses.&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;PHP Training Prerequisites&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;All MySQL and PHP training attendees must be fluent in HTML. The course can be customized to any level of programming and relational database familiarity.&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;Hands-on/Lecture Ratio&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;This MySQL and PHP training class is 70% hands-on, 30% lecture, with the longest lecture segments lasting for 10 minutes. Students "learn by doing," with immediate opportunities to apply the material they learn to real-world problems.&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;PHP Training Materials&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;All MySQL and PHP training students receive a copy of Apress' &lt;strong&gt;Beginning PHP and MySQL 5: From Novice to Professional&lt;/strong&gt; and related courseware.&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;Software Needed on Each Student PC&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;The following should be installed on each student PC:&lt;br /&gt;Linux, Windows, MacOS X, or Solaris operating system&lt;br /&gt;Web server (either Apache httpd or Microsoft IIS)&lt;br /&gt;PHP 5 or later with the PEAR extensions enabled&lt;br /&gt;MySQL 4.1 or later (5 or later recommended)&lt;br /&gt;Internet Explorer 6 or later or Firefox 2 or later&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;Note:&lt;/span&gt;&lt;/strong&gt; XAMPP, provides a single installer with everything you need for the class on Linux, Windows, MacOS X, or Solaris.&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;PHP Training Objectives&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;            *To teach attendees the PHP programming skills they need to successfully build interactive, data-driven sites&lt;br /&gt;            *To teach students enough MySQL database skills to build the databases that will power their sites&lt;br /&gt;&lt;a name="outline"&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;PHP Training Outline&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;*PHP Basics&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;How PHP Works&lt;br /&gt;The php.ini File&lt;br /&gt;Basic PHP Syntax&lt;br /&gt;&lt;strong&gt;*PHP Tags&lt;br /&gt;*PHP Statements and Whitespace&lt;br /&gt;*Comments&lt;br /&gt;*PHP Functions&lt;br /&gt;*Hello World!&lt;/strong&gt;&lt;br /&gt;PHP Tags&lt;br /&gt;PHP Statements and Whitespace&lt;br /&gt;Comments&lt;br /&gt;PHP Functions&lt;br /&gt;Hello World!&lt;br /&gt;Variables&lt;br /&gt;&lt;strong&gt;*Variable Types&lt;br /&gt;*Variable Names (Identifiers)&lt;br /&gt;*Type Strength&lt;br /&gt;*Hello Variables!&lt;br /&gt;*Variable Scope&lt;br /&gt;*Superglobals&lt;br /&gt;*Constants&lt;br /&gt;*Variable-Testing and Manipulation Functions&lt;/strong&gt;&lt;br /&gt;Variable Types&lt;br /&gt;Variable Names (Identifiers)&lt;br /&gt;Type Strength&lt;br /&gt;Hello Variables!&lt;br /&gt;Variable Scope&lt;br /&gt;Superglobals&lt;br /&gt;Constants&lt;br /&gt;Variable-Testing and Manipulation Functions&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;PHP Operators&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Creating Dynamic Pages&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;*&lt;/span&gt;&lt;span style="font-size:100%;"&gt;Single Quotes vs. Double Quotes&lt;/span&gt;&lt;br /&gt;*Howdy World!&lt;/strong&gt;&lt;br /&gt;Single Quotes vs. Double Quotes&lt;br /&gt;Howdy World!&lt;br /&gt;Conclusion&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;*Flow Control&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Conditional Processing&lt;br /&gt;&lt;strong&gt;*If Conditions&lt;/strong&gt;&lt;br /&gt;If Conditions&lt;br /&gt;Loops&lt;br /&gt;&lt;strong&gt;*while&lt;br /&gt;*do...while&lt;br /&gt;*for&lt;br /&gt;*break and continue&lt;br /&gt;&lt;/strong&gt;while&lt;br /&gt;do...while&lt;br /&gt;for&lt;br /&gt;break and continue&lt;br /&gt;Conclusion&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;*Arrays&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Enumerated Arrays&lt;br /&gt;&lt;strong&gt;*Initializing Arrays&lt;br /&gt;*Appending to an Array&lt;br /&gt;*Reading from Arrays&lt;br /&gt;*Looping through Arrays&lt;/strong&gt;&lt;br /&gt;Initializing Arrays&lt;br /&gt;Appending to an Array&lt;br /&gt;Reading from Arrays&lt;br /&gt;Looping through Arrays&lt;br /&gt;Associative Arrays&lt;br /&gt;&lt;strong&gt;*Initializing Associative Arrays&lt;br /&gt;*Reading from Associative Arrays&lt;br /&gt;*Looping through Associative Arrays&lt;br /&gt;*Superglobal Arrays&lt;/strong&gt;&lt;br /&gt;Initializing Associative Arrays&lt;br /&gt;Reading from Associative Arrays&lt;br /&gt;Looping through Associative Arrays&lt;br /&gt;Superglobal Arrays&lt;br /&gt;Two-dimensional Arrays&lt;br /&gt;&lt;strong&gt;*Reading from Two-dimensional Arrays&lt;br /&gt;*Looping through Two-dimensional Arrays&lt;/strong&gt;&lt;br /&gt;Reading from Two-dimensional Arrays&lt;br /&gt;Looping through Two-dimensional Arrays&lt;br /&gt;Array Manipulation Functions&lt;br /&gt;Conclusion&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;PHP and HTML Forms&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;HTML Forms&lt;br /&gt;&lt;strong&gt;*How HTML Forms Work&lt;br /&gt;*A Sample HTML Form&lt;br /&gt;*Form Variables&lt;/strong&gt;&lt;br /&gt;How HTML Forms Work&lt;br /&gt;A Sample HTML Form&lt;br /&gt;Form Variables&lt;br /&gt;Conclusion&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;*String Manipulation&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;Formatting Strings&lt;br /&gt;&lt;strong&gt;*Concatenation&lt;br /&gt;*String Manipulation Functions&lt;br /&gt;*Examples of String Functions&lt;/strong&gt;&lt;br /&gt;Concatenation&lt;br /&gt;String Manipulation Functions&lt;br /&gt;Examples of String Functions&lt;br /&gt;Magic Quotes&lt;br /&gt;&lt;strong&gt;*magic_quotes_gpc&lt;br /&gt;*magic_quotes_runtime&lt;br /&gt;*Recommendation on Magic Quotes&lt;br /&gt;*Conclusion&lt;/strong&gt;&lt;br /&gt;magic_quotes_gpc&lt;br /&gt;magic_quotes_runtime&lt;br /&gt;Recommendation on Magic Quotes&lt;br /&gt;Conclusion&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;*Reusing Code and Writing Functions&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Including Files&lt;br /&gt;&lt;strong&gt;*require&lt;br /&gt;*require_once&lt;br /&gt;*auto_prepend_file and auto_append_file &lt;/strong&gt;&lt;br /&gt;require&lt;br /&gt;require_once&lt;br /&gt;auto_prepend_file and auto_append_file&lt;br /&gt;User Functions&lt;br /&gt;&lt;strong&gt;*Defining and Calling Functions&lt;br /&gt;*Default Values&lt;br /&gt;*Variable Scope&lt;br /&gt;*By Reference vs. By Value&lt;/strong&gt;&lt;br /&gt;Defining and Calling Functions&lt;br /&gt;Default Values&lt;br /&gt;Variable Scope&lt;br /&gt;By Reference vs. By Value&lt;br /&gt;Form Processing&lt;br /&gt;&lt;strong&gt;*Code Organization&lt;/strong&gt;&lt;br /&gt;Code Organization&lt;br /&gt;Conclusion&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;*Simple SELECTs&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;Introduction to the Northwind Database&lt;br /&gt;Some Basics&lt;br /&gt;&lt;strong&gt;*Comments&lt;br /&gt;*Whitespace and Semi-colons&lt;br /&gt;*Case Sensitivity&lt;/strong&gt;&lt;br /&gt;Comments&lt;br /&gt;Whitespace and Semi-colons&lt;br /&gt;Case Sensitivity&lt;br /&gt;SELECTing All Columns in All Rows&lt;br /&gt;SELECTing Specific Columns&lt;br /&gt;Sorting Records&lt;br /&gt;&lt;strong&gt;*Sorting By a Single Column&lt;br /&gt;*Sorting By Multiple Columns&lt;br /&gt;*Sorting By Column Position&lt;br /&gt;*Ascending and Descending Sorts&lt;/strong&gt;&lt;br /&gt;Sorting By a Single Column&lt;br /&gt;Sorting By Multiple Columns&lt;br /&gt;Sorting By Column Position&lt;br /&gt;Ascending and Descending Sorts&lt;br /&gt;The WHERE Clause and Operator Symbols&lt;br /&gt;&lt;strong&gt;*Checking for Equality&lt;br /&gt;*Checking for Inequality&lt;br /&gt;*Checking for Greater or Less Than&lt;br /&gt;*Checking for NULL&lt;br /&gt;*WHERE and ORDER BY&lt;br /&gt;&lt;/strong&gt;Checking for Equality&lt;br /&gt;Checking for Inequality&lt;br /&gt;Checking for Greater or Less Than&lt;br /&gt;Checking for NULL&lt;br /&gt;WHERE and ORDER BY&lt;br /&gt;The WHERE Clause and Operator Words&lt;br /&gt;&lt;strong&gt;*The BETWEEN Operator&lt;br /&gt;*The IN Operator&lt;br /&gt;*The LIKE Operator&lt;br /&gt;*The NOT Operator&lt;/strong&gt;&lt;br /&gt;The BETWEEN Operator&lt;br /&gt;The IN Operator&lt;br /&gt;The LIKE Operator&lt;br /&gt;The NOT Operator&lt;br /&gt;Checking Multiple Conditions&lt;br /&gt;&lt;strong&gt;*AND&lt;br /&gt;*OR&lt;br /&gt;*Order of Evaluation&lt;/strong&gt;&lt;br /&gt;AND&lt;br /&gt;OR&lt;br /&gt;Order of Evaluation&lt;br /&gt;Conclusion&lt;br /&gt;&lt;strong&gt;*&lt;span style="font-size:130%;"&gt;Subqueries, Joins and Unions&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Subqueries&lt;br /&gt;Joins&lt;br /&gt;&lt;strong&gt;*Table Aliases&lt;br /&gt;*Multi-table Joins&lt;br /&gt;&lt;/strong&gt;Table Aliases&lt;br /&gt;Multi-table Joins&lt;br /&gt;Outer Joins&lt;br /&gt;Unions&lt;br /&gt;&lt;strong&gt;*UNION ALL&lt;br /&gt;*UNION Rules&lt;/strong&gt;&lt;br /&gt;UNION ALL&lt;br /&gt;UNION Rules&lt;br /&gt;Conclusion&lt;br /&gt;&lt;strong&gt;*&lt;span style="font-size:130%;"&gt;Inserting, Updating and Deleting Records&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;INSERT&lt;br /&gt;UPDATE&lt;br /&gt;DELETE&lt;br /&gt;Conclusion&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;Managing Data&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Querying a Database&lt;br /&gt;&lt;strong&gt;*mysqli() Overview&lt;br /&gt;*mysqli Methods and Properties&lt;br /&gt;*Inserting and Updating Records&lt;br /&gt;*mysqli Prepared Statements&lt;/strong&gt;&lt;br /&gt;mysqli() Overview&lt;br /&gt;mysqli Methods and Properties&lt;br /&gt;Inserting and Updating Records&lt;br /&gt;mysqli Prepared Statements&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;*PEAR:DB&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Advantages and Disadvantages of PEAR DB&lt;br /&gt;&lt;strong&gt;*Why use a database abstraction layer?&lt;br /&gt;*When not to use a database abstraction layer?&lt;br /&gt;&lt;/strong&gt;Why use a database abstraction layer?&lt;br /&gt;When not to use a database abstraction layer?&lt;br /&gt;Using PEAR DB&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;*Authentication with PHP and SQL&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;A Database-less Login Form&lt;br /&gt;Conclusion&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;*Regular Expressions&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Perl-compatible Regular Expression Functions&lt;br /&gt;&lt;strong&gt;*preg_match()&lt;br /&gt;*preg_replace()&lt;br /&gt;*Regular Expression Tester&lt;/strong&gt;&lt;br /&gt;preg_match()&lt;br /&gt;preg_replace()&lt;br /&gt;Regular Expression Tester&lt;br /&gt;Regular Expression Syntax&lt;br /&gt;&lt;strong&gt;*Start and End ( ^ $ )&lt;br /&gt;*Number of Occurrences ( ? + * {} )&lt;br /&gt;*Common Characters ( . \d \D \w \W \s \S )&lt;br /&gt;*Grouping ( [] )&lt;br /&gt;*Negation ( ^ )&lt;br /&gt;*Subpatterns ( () )&lt;br /&gt;*Alternatives (  )&lt;br /&gt;*Escape Character ( \ )&lt;/strong&gt;&lt;br /&gt;Start and End ( ^ $ )&lt;br /&gt;Number of Occurrences ( ? + * {} )&lt;br /&gt;Common Characters ( . \d \D \w \W \s \S )&lt;br /&gt;Grouping ( [] )&lt;br /&gt;Negation ( ^ )&lt;br /&gt;Subpatterns ( () )&lt;br /&gt;Alternatives (  )&lt;br /&gt;Escape Character ( \ )&lt;br /&gt;Form Validation Functions with Regular Expressions&lt;br /&gt;Conclusion&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;*Session Control and Cookies&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Sessions&lt;br /&gt;&lt;strong&gt;*Configuring Sessions&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;*Session Functions&lt;br /&gt;&lt;/strong&gt;Configuring Sessions&lt;br /&gt;Session Functions&lt;br /&gt;Cookies&lt;br /&gt;Conclusion&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;*Sending Email with PHP&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;mail()&lt;br /&gt;&lt;strong&gt;*Shortcomings of mail()&lt;/strong&gt;&lt;br /&gt;Shortcomings of mail()&lt;br /&gt;PHPMailer&lt;br /&gt;Conclusion&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;*File System Management&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Opening a File&lt;br /&gt;&lt;strong&gt;*fopen()&lt;/strong&gt;&lt;br /&gt;fopen()&lt;br /&gt;Reading from a File&lt;br /&gt;&lt;strong&gt;*fgets()&lt;/strong&gt;&lt;br /&gt;fgets()&lt;br /&gt;Writing to a File&lt;br /&gt;&lt;strong&gt;*fwrite()&lt;/strong&gt;&lt;br /&gt;fwrite()&lt;br /&gt;File Locking&lt;br /&gt;&lt;strong&gt;*flock()&lt;/strong&gt;&lt;br /&gt;flock()&lt;br /&gt;Uploading Files via an HTML Form&lt;br /&gt;Getting File Information&lt;br /&gt;More File Functions&lt;br /&gt;Directory Functions&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;strong&gt;*Getting a Directory Listing&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;Getting a Directory Listing&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;*Conclusion&lt;/span&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1066058856285499993-5165036437165638673?l=saravananmarychezhiyan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saravananmarychezhiyan.blogspot.com/feeds/5165036437165638673/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1066058856285499993&amp;postID=5165036437165638673' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/5165036437165638673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/5165036437165638673'/><link rel='alternate' type='text/html' href='http://saravananmarychezhiyan.blogspot.com/2009/06/introduction-to-php-mysql.html' title='Introduction to PHP &amp; MySQL'/><author><name>chezhiyan</name><uri>http://www.blogger.com/profile/01455777242392052174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='http://1.bp.blogspot.com/_OG2OE19hbGc/SuPTRM0vRLI/AAAAAAAAAD8/EIiWelThIl0/S220/pmk.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1066058856285499993.post-1359544351442041340</id><published>2009-06-21T20:11:00.000-07:00</published><updated>2009-06-21T20:15:04.223-07:00</updated><title type='text'>Advanced PHP Training</title><content type='html'>&lt;strong&gt;Advanced PHP Training Overview&lt;/strong&gt;&lt;br /&gt;Accelebrate's Advanced PHP training teaches experienced PHP developers the object-oriented, XML, PHP, web services, Ajax, and Smarty skills they need to build complex, data-driven, scalable applications.&lt;br /&gt;&lt;strong&gt;Location and Pricing&lt;/strong&gt;&lt;br /&gt;Most Accelebrate courses are taught on-site at our clients' locations worldwide for groups of 3 or more attendees and are customized to their specific needs. Please visit our &lt;strong&gt;client list&lt;/strong&gt; to see organizations for whom we have recently delivered training. These courses can also be delivered as live, private online classes for groups that are geographically dispersed or wish to save on the instructor’s or students’ travel expenses. To receive a customized proposal and price quote private training at your site or onlin.In addition, some courses are available as live, online classes for individuals.  To see a schedule of online courses.&lt;br /&gt;&lt;strong&gt;Advanced PHP Training Prerequisites&lt;/strong&gt;&lt;br /&gt;All attendees must be familiar with the fundamentals of building data-driven PHP web applications, either from their own experience or from Accelebrate's &lt;strong&gt;Introduction to PHP and MySQL training.&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Hands-on/Lecture Ratio&lt;/strong&gt;&lt;br /&gt;This PHP training class is 70% hands-on, 30% lecture, with the longest lecture segments lasting for 10 minutes. Students "learn by doing," with immediate opportunities to apply the material they learn to real-world problems.&lt;br /&gt;&lt;strong&gt;Advanced PHP Training Materials&lt;br /&gt;&lt;/strong&gt;All attendees receive comprehensive courseware and a copy of O'Reilly's PHP Cookbook.&lt;br /&gt;&lt;strong&gt;Software Needed on Each Student PC&lt;/strong&gt;&lt;br /&gt;The following should be installed on each student PC:&lt;br /&gt;Linux, Windows, MacOS X, or Solaris operating system&lt;br /&gt;Web server (either Apache httpd or Microsoft IIS)&lt;br /&gt;PHP 5.2 or later with the PEAR extensions enabled&lt;br /&gt;MySQL™ 4.1 or later (5 or later recommended), Microsoft SQL Server 2005, Microsoft Access 2000 or later, or Oracle 8i or later&lt;br /&gt;Internet Explorer 6 or later or Firefox 2 or later&lt;br /&gt;&lt;strong&gt;Advanced PHP Training Objectives&lt;/strong&gt;&lt;br /&gt;Learn how to program in Object-Oriented PHP&lt;br /&gt;Learn to process XML with PHP&lt;br /&gt;Learn to work with the PEAR HTTP_REQUEST Module&lt;br /&gt;Learn to work with XML RPC and PHP&lt;br /&gt;Learn to create PHP Web Services&lt;br /&gt;Learn to work with Smarty Templates to speed up PHP development&lt;br /&gt;&lt;a name="outline"&gt;&lt;/a&gt;&lt;strong&gt;Advanced PHP Training Outline&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;*Object-Oriented PHP&lt;/strong&gt;&lt;br /&gt;Building a Class&lt;br /&gt;Working with Properties and Functions&lt;br /&gt;Private, Protected, Public modifiers&lt;br /&gt;Inheritance&lt;br /&gt;Interfaces&lt;br /&gt;Building a Web Page Object&lt;br /&gt;PHP Objects in N-Tier Web Architecture&lt;br /&gt;Importance of PHP Business Objects&lt;br /&gt;&lt;strong&gt;*PHP XML Support&lt;br /&gt;&lt;/strong&gt;Simple XML Object&lt;br /&gt;Executing XPath Queries&lt;br /&gt;DOM Interoperability&lt;br /&gt;Using XPath&lt;br /&gt;Installing and Configuring LIBXSL&lt;br /&gt;Applying Server side XSL Transformations&lt;br /&gt;Using XML in N-Tier Architecture&lt;br /&gt;Mixing PHP Objects and XML&lt;br /&gt;&lt;strong&gt;*PEAR: HTTP_REQUEST MODULE&lt;/strong&gt;&lt;br /&gt;Installing PEAR::HTTP_REQUEST with Dependencies&lt;br /&gt;HTTP_REQUEST Capability&lt;br /&gt;HTTP GET Request&lt;br /&gt;HTTP POST Request&lt;br /&gt;Programmatically Posting to a HTML Form&lt;br /&gt;Parsing the Response&lt;br /&gt;Building a Basic Authentication PHP Client&lt;br /&gt;&lt;strong&gt;*XML RPC&lt;/strong&gt;&lt;br /&gt;XML-RPC Implementations&lt;br /&gt;Installing and Configuring PHPXMLRPC&lt;br /&gt;XML RPC Data-Types&lt;br /&gt;XML RPC Server&lt;br /&gt;XML RPC Client&lt;br /&gt;XML RPC Request and Response&lt;br /&gt;Exploring the XML RPC API&lt;br /&gt;&lt;strong&gt;*PHP Web Services&lt;/strong&gt;&lt;br /&gt;Web Service Technulogy Stack&lt;br /&gt;SOAP Soup&lt;br /&gt;Web Services with PHP&lt;br /&gt;Installing NuSOAP&lt;br /&gt;Building a SOAP SERVER&lt;br /&gt;Consuming a Web Service&lt;br /&gt;Generating WSDL Dynamically&lt;br /&gt;Understanding Generated WSDL&lt;br /&gt;WSDL and SOAP Proxies&lt;br /&gt;&lt;strong&gt;*Complex PHP Web Services&lt;/strong&gt;&lt;br /&gt;Building Interoperable Web Services&lt;br /&gt;Generating and Handling SOAP Faults&lt;br /&gt;RPC Vs. Document Message Encoding&lt;br /&gt;Serializing the SOAP Envelope&lt;br /&gt;Web Service Best Practices&lt;br /&gt;&lt;strong&gt;*Ajax with PHP&lt;/strong&gt;&lt;br /&gt;Ajax Overview&lt;br /&gt;Ajax Technulogy Stack&lt;br /&gt;Ajax Implementations&lt;br /&gt;Installing and configuring HTML_Ajax Pear Module&lt;br /&gt;Ajax Server&lt;br /&gt;Ajax Client&lt;br /&gt;&lt;strong&gt;*Smarty Templates&lt;/strong&gt;&lt;br /&gt;Smarty Overview&lt;br /&gt;Installing and configuring Smarty Pear Module&lt;br /&gt;Setting up a Template&lt;br /&gt;Passing Data to the Template&lt;br /&gt;Smarty for Template Designers&lt;br /&gt;Smarty for Programmers&lt;br /&gt;Smarty in N-Tier Architecture&lt;br /&gt;&lt;strong&gt;*Conclusion&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1066058856285499993-1359544351442041340?l=saravananmarychezhiyan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saravananmarychezhiyan.blogspot.com/feeds/1359544351442041340/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1066058856285499993&amp;postID=1359544351442041340' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/1359544351442041340'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/1359544351442041340'/><link rel='alternate' type='text/html' href='http://saravananmarychezhiyan.blogspot.com/2009/06/advanced-php-training.html' title='Advanced PHP Training'/><author><name>chezhiyan</name><uri>http://www.blogger.com/profile/01455777242392052174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='http://1.bp.blogspot.com/_OG2OE19hbGc/SuPTRM0vRLI/AAAAAAAAAD8/EIiWelThIl0/S220/pmk.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1066058856285499993.post-6962083597190147550</id><published>2009-06-21T19:58:00.000-07:00</published><updated>2009-06-21T20:17:09.141-07:00</updated><title type='text'>Building Data-Driven PHP Web Sites with Dreamweaver Training</title><content type='html'>&lt;strong&gt;PHP with Dreamweaver Training Overview&lt;/strong&gt;&lt;br /&gt;Accelebrate's Building Data-Driven PHP Web Sites with Dreamweaver training class teaches attendees the Dreamweaver and PHP skills they need to integrate databases with their Web site.&lt;br /&gt;&lt;strong&gt;Location and Pricing&lt;/strong&gt;&lt;br /&gt;Most Accelebrate courses are taught on-site at our clients' locations worldwide for groups of 3 or more attendees and are customized to their specific needs. Please visit our&lt;strong&gt; client list&lt;/strong&gt; to see organizations for whom we have recently delivered training. These courses can also be delivered as live, private online classes for groups that are geographically dispersed or wish to save on the instructor’s or students’ travel expenses. To receive a customized proposal and price quote private training at your site or online.&lt;br /&gt;In addition, some courses are available as live, online classes for individuals.&lt;br /&gt;&lt;strong&gt;PHP with Dreamweaver Training Prerequisites&lt;/strong&gt;&lt;br /&gt;Accelebrate's &lt;strong&gt;Beginning Macromedia Dreamweaver 8, Introduction to Adobe Dreamweaver CS3,&lt;/strong&gt; or equivalent experience.&lt;br /&gt;&lt;strong&gt;Alternative Class&lt;/strong&gt;&lt;br /&gt;If you are interested in learning PHP programming, we encourage you to consider our &lt;strong&gt;Introduction to PHP &amp;amp; MySQL&lt;/strong&gt; training class.&lt;br /&gt;&lt;strong&gt;Hands-on/Lecture Ratio&lt;/strong&gt;&lt;br /&gt;This Dreamweaver training class is 70% hands-on, 30% lecture, with the longest lecture segments lasting for 15 minutes. Students "learn by doing," with immediate opportunities to apply the material they learn to real-world problems.&lt;br /&gt;&lt;strong&gt;PHP with Dreamweaver Training Materials&lt;/strong&gt;&lt;br /&gt;All students for this Dreamweaver training class receive a copy of Macromedia Press' Macromedia Dreamweaver with ASP, ColdFusion, and PHP: Training from the Source and related courseware.&lt;br /&gt;&lt;strong&gt;Software Needed on Each Student PC&lt;/strong&gt;&lt;br /&gt;Firefox 2.0 or later or Internet Explorer 6 or later&lt;br /&gt;Dreamweaver 8, CS3, or later (course can also be taught using Dreamweaver MX 2004 or MX)&lt;br /&gt;Microsoft Internet Information Server, Apache Web server, Tomcat, or another appropriate Web server software package.&lt;br /&gt;A database server, such as MySQL™ (free), SQL Server, or Oracle (this can be installed on each student PC or on a server reachable over the network from these PCs)&lt;br /&gt;&lt;strong&gt;PHP with Dreamweaver Training Objective&lt;/strong&gt;&lt;br /&gt;To learn how to build data-driven Web sites using Dreamweaver, PHP, and a database&lt;br /&gt;&lt;a name="outline"&gt;&lt;/a&gt;&lt;strong&gt;PHP with Dreamweaver Training Outline&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;*Introduction&lt;/strong&gt;&lt;br /&gt;Roles of server-side languages&lt;br /&gt;Choosing a server-side language&lt;br /&gt;Which server-side language is best?&lt;br /&gt;Overview of PHP and its requirements&lt;br /&gt;Goals of this class / Who is this class for?&lt;br /&gt;&lt;strong&gt;*Creating a Dreamweaver site&lt;/strong&gt;&lt;br /&gt;Site creation - basic&lt;br /&gt;Site creation - advanced&lt;br /&gt;&lt;strong&gt;*Database connections&lt;/strong&gt;&lt;br /&gt;Database basics&lt;br /&gt;Introduction to SQL&lt;br /&gt;Server behaviors&lt;br /&gt;&lt;strong&gt;*Querying the database&lt;/strong&gt;&lt;br /&gt;Building a SQL query using the Simple view&lt;br /&gt;Building a SQL query using the Advanced view&lt;br /&gt;Adding fields from the resulting records to your page&lt;br /&gt;&lt;strong&gt;*Displaying and formatting query results&lt;/strong&gt;&lt;br /&gt;Using Repeat Region to display multiple records&lt;br /&gt;Formatting results&lt;br /&gt;&lt;strong&gt;*Paging through records&lt;/strong&gt;&lt;br /&gt;Schemes for recordset navigation&lt;br /&gt;Paging to first, last, previous, and next records&lt;br /&gt;&lt;strong&gt;*Show region if...&lt;/strong&gt;&lt;br /&gt;Selectively displaying information based on a conditional&lt;br /&gt;Disabling the first and previous record links if the first page of results is displayed&lt;br /&gt;Disabling the last and next record links if the last page of results is displayed&lt;br /&gt;&lt;strong&gt;*Displaying the count of the number of records returned&lt;br /&gt;*Creating master-detail views&lt;/strong&gt;&lt;br /&gt;Overview of the importance of master-detail views and how they convey information&lt;br /&gt;Creating a master-detail view&lt;br /&gt;&lt;strong&gt;*Advanced recordsets and multi-table queries&lt;/strong&gt;&lt;br /&gt;Method 1 - Simple recordset with filter&lt;br /&gt;Method 2 - Advanced recordset&lt;br /&gt;Method 3 - Advanced recordset and multi-table Queries&lt;br /&gt;&lt;strong&gt;*Dynamically populating forms&lt;/strong&gt;&lt;br /&gt;Populating text fields, text areas, and hidden fields&lt;br /&gt;Populating selection lists, radio button lists, and checkboxes&lt;br /&gt;&lt;strong&gt;*Building record insertion forms&lt;/strong&gt;&lt;br /&gt;Building the insertion form by hand&lt;br /&gt;Allowing Dreamweaver to generate the record insertion form automatically&lt;br /&gt;Creating a page that confirms the record insertion&lt;br /&gt;Validating form entries using JavaScript behaviors&lt;br /&gt;&lt;strong&gt;*Understanding stored procedures&lt;/strong&gt;&lt;br /&gt;How they are created in the database&lt;br /&gt;Advantages/disadvantages of stored procedures versus SQL&lt;br /&gt;Calling a stored procedure without passing parameters&lt;br /&gt;Passing input parameters to a stored procedure&lt;br /&gt;Retrieving parameters from a stored procedure&lt;br /&gt;&lt;strong&gt;*Updating records&lt;/strong&gt;&lt;br /&gt;Manually constructing a form that allows the user to update a record&lt;br /&gt;Using Dreamweaver to automatically generate a form for updating the record&lt;br /&gt;Validating the edited information using JavaScript behaviors&lt;br /&gt;Building a confirmation page to display the result of updating the record&lt;br /&gt;&lt;strong&gt;*Deleting records&lt;/strong&gt;&lt;br /&gt;Precautions to take to ensure that records are not inadvertently deleted&lt;br /&gt;Building an appropriate record deletion interface, complete with confirmation dialog&lt;br /&gt;&lt;strong&gt;*Implementing user login/logout with Dreamweaver&lt;/strong&gt;&lt;br /&gt;Overview of Web application security issues&lt;br /&gt;Preferred approach: configuring the Web server to manage security&lt;br /&gt;Alternative approach: having Dreamweaver automatically generate code for logging users in, authenticating them, and logging them out&lt;br /&gt;In-depth instruction on using Dreamweaver with PHP to implement user login/logout and page-by-page authentication&lt;br /&gt;&lt;strong&gt;*Conclusion&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1066058856285499993-6962083597190147550?l=saravananmarychezhiyan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saravananmarychezhiyan.blogspot.com/feeds/6962083597190147550/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1066058856285499993&amp;postID=6962083597190147550' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/6962083597190147550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/6962083597190147550'/><link rel='alternate' type='text/html' href='http://saravananmarychezhiyan.blogspot.com/2009/06/building-data-driven-php-web-sites-with.html' title='Building Data-Driven PHP Web Sites with Dreamweaver Training'/><author><name>chezhiyan</name><uri>http://www.blogger.com/profile/01455777242392052174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='http://1.bp.blogspot.com/_OG2OE19hbGc/SuPTRM0vRLI/AAAAAAAAAD8/EIiWelThIl0/S220/pmk.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1066058856285499993.post-2174138426597207162</id><published>2009-06-18T20:29:00.000-07:00</published><updated>2009-06-18T20:32:37.429-07:00</updated><title type='text'>Browser detection with php</title><content type='html'>&lt;p&gt;This tutorial explains how to make a code only works in one separated browser, I think that's useful to correct incompatibility of page style in some browsers.&lt;/p&gt;&lt;p&gt;In your page, put:&lt;br /&gt;&lt;br /&gt;1.&lt;?php  &lt;br /&gt;2.&lt;br /&gt;3.$user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '';  &lt;br /&gt;4.if(strpos($user_agent, 'Opera') !== false)  &lt;br /&gt;5.{  &lt;br /&gt;6.   echo 'code for Opera';  &lt;br /&gt;7.}  &lt;br /&gt;8.elseif(strpos($user_agent, 'Gecko') !== false)  &lt;br /&gt;9.{  &lt;br /&gt;10.   echo 'code for Mozilla/Firefox';  &lt;br /&gt;11.}  &lt;br /&gt;12.elseif(strpos($user_agent, 'MSIE') !== false)  &lt;br /&gt;13.{  &lt;br /&gt;14.   echo 'code for IE';  &lt;br /&gt;15.}  &lt;br /&gt;16.else  &lt;br /&gt;17.{  &lt;br /&gt;18.  echo 'some other browser';  &lt;br /&gt;19.}  &lt;br /&gt;20. &lt;br /&gt;21.?&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1066058856285499993-2174138426597207162?l=saravananmarychezhiyan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saravananmarychezhiyan.blogspot.com/feeds/2174138426597207162/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1066058856285499993&amp;postID=2174138426597207162' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/2174138426597207162'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/2174138426597207162'/><link rel='alternate' type='text/html' href='http://saravananmarychezhiyan.blogspot.com/2009/06/browser-detection-with-php.html' title='Browser detection with php'/><author><name>chezhiyan</name><uri>http://www.blogger.com/profile/01455777242392052174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='http://1.bp.blogspot.com/_OG2OE19hbGc/SuPTRM0vRLI/AAAAAAAAAD8/EIiWelThIl0/S220/pmk.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1066058856285499993.post-1568702570852226947</id><published>2009-06-18T20:23:00.000-07:00</published><updated>2009-06-18T20:28:21.881-07:00</updated><title type='text'>mySQL Grant Command</title><content type='html'>You can use the &lt;strong&gt;mySQL GRANT&lt;/strong&gt; command to give priveledges to users to a specific database.&lt;br /&gt;      The syntax is as follows and follows the standard mySQL keywords and syntax you would perhaps use in a PHP script.&lt;br /&gt;Code: [hide]&lt;br /&gt;Code: [show]&lt;br /&gt;GRANT &lt;strong&gt;privileges  &lt;br /&gt;&lt;/strong&gt;ON &lt;strong&gt;databasename.tablename  &lt;br /&gt;&lt;/strong&gt;TO &lt;strong&gt;username#host&lt;/strong&gt; &lt;br /&gt;IDENTIFIED BY&lt;strong&gt; "password";&lt;/strong&gt;&lt;br /&gt;          The priveledges you can grant to a user are vast and for added security, you should only grant permissions to a users on a database that are requried by your application:&lt;br /&gt;*ALL (all privileges)&lt;br /&gt;*ALTER&lt;br /&gt;*CREATE&lt;br /&gt;*DELETE&lt;br /&gt;*DROP&lt;br /&gt;*FILE&lt;br /&gt;*INDEX&lt;br /&gt;*INSERT&lt;br /&gt;*PROCESS&lt;br /&gt;*REFERENCES (not used currently)&lt;br /&gt;*RELOAD&lt;br /&gt;*SELECT&lt;br /&gt;*SHUTDOWN&lt;br /&gt;*UPDATE&lt;br /&gt;*USAGE (can connect but no privileges)&lt;br /&gt;*Example use of the above syntax and privileges:&lt;br /&gt;*Code: [hide]&lt;br /&gt;*Code: [show]&lt;br /&gt;GRANT &lt;strong&gt;SELECT, INSERT&lt;/strong&gt;  &lt;br /&gt;ON &lt;strong&gt;mydatabase.*&lt;/strong&gt;  &lt;br /&gt;TO &lt;strong&gt;user#domain.com&lt;/strong&gt;  &lt;br /&gt;IDENTIFIED BY&lt;strong&gt; "somepassword"&lt;/strong&gt;&lt;br /&gt;              The above wildcard (*) will replace the entire list of tables in the database. You can specify just specify one table name if required. You can also specify an IP Address for the domain part of the "TO" command.&lt;br /&gt;You can revoke privileges using the following syntax:&lt;br /&gt;Code: [hide]&lt;br /&gt;Code: [show]&lt;br /&gt;REVOKE&lt;strong&gt; privileges&lt;/strong&gt;  &lt;br /&gt;ON &lt;strong&gt;databasename.tablename&lt;/strong&gt;  &lt;br /&gt;FROM &lt;strong&gt;username#hostname&lt;/strong&gt;&lt;br /&gt;          Usually, only server administrators should worry about this kind of permission configuration. If you are a normal webmaster using a typical control panel such as Cpanel - all this is done behind the scenes and you will not need to worry about setting up such code.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1066058856285499993-1568702570852226947?l=saravananmarychezhiyan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saravananmarychezhiyan.blogspot.com/feeds/1568702570852226947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1066058856285499993&amp;postID=1568702570852226947' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/1568702570852226947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/1568702570852226947'/><link rel='alternate' type='text/html' href='http://saravananmarychezhiyan.blogspot.com/2009/06/mysql-grant-command.html' title='mySQL Grant Command'/><author><name>chezhiyan</name><uri>http://www.blogger.com/profile/01455777242392052174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='http://1.bp.blogspot.com/_OG2OE19hbGc/SuPTRM0vRLI/AAAAAAAAAD8/EIiWelThIl0/S220/pmk.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1066058856285499993.post-5393434664240888456</id><published>2009-06-18T20:17:00.000-07:00</published><updated>2009-06-18T20:21:26.891-07:00</updated><title type='text'>PHP Operators</title><content type='html'>&lt;strong&gt;Introduction&lt;/strong&gt;&lt;br /&gt; An operator is used to operate on values. In a basic example, we use an addition operator to add 1+9 together. In another basic example, we use a subtract operator to take away 1 from 10 (10-1). PHP Operators are split into the following categories and shall be explained later in the article:&lt;br /&gt;*Arithmetic Operators&lt;br /&gt;*Assignment Operators&lt;br /&gt;*Comparison Operators&lt;br /&gt;*Logical Operators&lt;br /&gt;&lt;strong&gt;Arithmetic Operators&lt;/strong&gt;&lt;br /&gt;1.Addition (+), eg: x+y&lt;br /&gt;2.Subtraction (-), eg: x-y&lt;br /&gt;3.Multiplication (*), eg: x*y&lt;br /&gt;4.Division (/), eg: x/y&lt;br /&gt;5.Modulus (%), eg: x%y&lt;br /&gt;6.Increment (++), eg x++&lt;br /&gt;7.Decrement (--), eg y--&lt;br /&gt;&lt;strong&gt;Assignment Operators&lt;/strong&gt;&lt;br /&gt;1. =, eg: x=y&lt;br /&gt;2. +=, eg: x+=y, AKA: x=x+y&lt;br /&gt;3. -=, eg: x-=y, AKA: x=x-y&lt;br /&gt;4. *=, eg: x*=y, AKA: x=x*y&lt;br /&gt;5. /=, eg: x/=y, AKA: x=x/y&lt;br /&gt;6.%=, eg: x%=y, AKA: x=x%y&lt;br /&gt;&lt;strong&gt;Comparison Operators&lt;/strong&gt;&lt;br /&gt;1.Not equal to (!=), eg: 18!=13 returns true&lt;br /&gt;2.Greater than (&gt;), eg: 18&gt;13 returns true&lt;br /&gt;3.Less than (&lt;), eg: 18&lt;13 returns false&lt;br /&gt;4.Greater than or equal to (&gt;=), eg: 18&gt;=13 returns true&lt;br /&gt;5.Less than or equal to (&lt;=), eg: 18&lt;=13 returns false&lt;br /&gt;&lt;strong&gt;Logical Operators&lt;/strong&gt;&lt;br /&gt;1.And (&amp;amp;&amp;amp;), eg: (1&lt;2&gt;4) returns true&lt;br /&gt;2.Or (), eg: (1==5  2==10) returns false&lt;br /&gt;3.Not (), eg: !(5==10) returns true&lt;br /&gt;&lt;strong&gt;Conclusion &lt;/strong&gt;&lt;br /&gt;Operators are mainly seen during assignment of a value to a variable or during a conditional statement or a looping structure. They are very powerful are can be used to determine the output of a script, procedure or function to be run.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1066058856285499993-5393434664240888456?l=saravananmarychezhiyan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saravananmarychezhiyan.blogspot.com/feeds/5393434664240888456/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1066058856285499993&amp;postID=5393434664240888456' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/5393434664240888456'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/5393434664240888456'/><link rel='alternate' type='text/html' href='http://saravananmarychezhiyan.blogspot.com/2009/06/php-operators.html' title='PHP Operators'/><author><name>chezhiyan</name><uri>http://www.blogger.com/profile/01455777242392052174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='http://1.bp.blogspot.com/_OG2OE19hbGc/SuPTRM0vRLI/AAAAAAAAAD8/EIiWelThIl0/S220/pmk.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1066058856285499993.post-2721031374304935715</id><published>2009-06-18T20:13:00.000-07:00</published><updated>2009-06-18T20:17:24.758-07:00</updated><title type='text'>Looping with PHP and for()</title><content type='html'>&lt;strong&gt;Introduction &lt;/strong&gt;&lt;br /&gt;The for() function is an iterative function. The word iteration is basically a posh word for looping. You use looping to avoid spaghetti code, and generate a list of output without having to type it all manually. For example, a looping function, for() can be used to loop the 10 times table without having to type it all out manually. Of course, there are much more practical uses for for(), but this tutorial is to tell you how to use this function so you can integrate it into your own projects.&lt;br /&gt; &lt;strong&gt;The function&lt;/strong&gt;&lt;br /&gt;for() loop is used to loop for a set number of iterations. The function takes the following syntax. The following syntax illustrates the function using pseudo code.&lt;br /&gt;Code: [hide]&lt;br /&gt;Code: [show]&lt;br /&gt;for ( initialize a counter; conditional statement; increment a counter)  &lt;br /&gt;{  &lt;br /&gt;   do this code;  &lt;br /&gt;} 'initialize a counter' is used to set a start value for the loop. For example, we want to stop looping from the value 0, we set the initialisation counter as 0. 'conditional statement' is used to set a stop value for the loop. This is usually in the form of a conditional statement or in the form of a set value. Thinking about it as a stop value, we can set this to 10. 'increment a counter' is used to set the amount to increment each iteration. For example, we could set the for() loop to increment + 2 each iteration, or + 1 each iteration (in which cause you would use ++ operand). &lt;strong&gt;Example Code&lt;/strong&gt;&lt;br /&gt;The following is an example use of for().&lt;br /&gt;Code: [hide]&lt;br /&gt;Code: [show]&lt;br /&gt;$num = 10;  &lt;br /&gt;for ($i = 0; $i &lt;= $num; $i++)  &lt;br /&gt;{  &lt;br /&gt;   echo $i;  &lt;br /&gt;} The above code will increment +1 each iteration, from a start value of 0 to a stop value of 10. On each iteration $i is echoed. The second parameter 'conditional statement' can take many forms such as sizeof($bla) and count($bla).&lt;br /&gt;&lt;strong&gt;Optimisations &lt;/strong&gt;&lt;br /&gt;In the previous section, it was mentioned that you can use different forms (thus functions) in the second parameter 'conditional statement'. Bearing this in mind, the function is called each iteration, thus slowing your procedure down. Therefore, on larger looping structures, consider determining the size of the stop value before the loop or consider using something like below:&lt;br /&gt;Code: [hide]&lt;br /&gt;Code: [show]&lt;br /&gt;for ($i = 0, $size = sizeof($bla); $i &lt; $size; $i++)  &lt;br /&gt;{  &lt;br /&gt;   echo $i;  &lt;br /&gt;} In the above code, the size of $size is determined within the function, but still only calculated once.&lt;br /&gt;&lt;strong&gt;Summary &lt;/strong&gt;&lt;br /&gt;To conclude, the for() loop is an iterative function of which we know how many iterations to be executed and carried out by the program code.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1066058856285499993-2721031374304935715?l=saravananmarychezhiyan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saravananmarychezhiyan.blogspot.com/feeds/2721031374304935715/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1066058856285499993&amp;postID=2721031374304935715' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/2721031374304935715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/2721031374304935715'/><link rel='alternate' type='text/html' href='http://saravananmarychezhiyan.blogspot.com/2009/06/looping-with-php-and-for.html' title='Looping with PHP and for()'/><author><name>chezhiyan</name><uri>http://www.blogger.com/profile/01455777242392052174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='http://1.bp.blogspot.com/_OG2OE19hbGc/SuPTRM0vRLI/AAAAAAAAAD8/EIiWelThIl0/S220/pmk.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1066058856285499993.post-480680588418058485</id><published>2009-06-18T20:09:00.000-07:00</published><updated>2009-06-18T20:13:12.775-07:00</updated><title type='text'>Building Blocks of PHP</title><content type='html'>Understand the linguistic terms of PHP, including boolean, operators, variables and constants.&lt;br /&gt;&lt;strong&gt;Variables &lt;/strong&gt;&lt;br /&gt;A variable is a special container that you can define, which will then contain a value you specify. For example a number, string, object, array or boolean.&lt;br /&gt;&lt;strong&gt;Constants&lt;/strong&gt;&lt;br /&gt; If you want to work with a value that needs to remain unchanged, you can define and use a constant variable. This isdifferent to a variable as variables offer a flexible way of storing data as you can change their values and type of data they hold.&lt;br /&gt;&lt;strong&gt;Globals and Superglobals&lt;/strong&gt;&lt;br /&gt; In addition to global declerations aof your own, PHP has built in predefined variables called superglobals. These are always present and the value they hold can be available in all your scripts.&lt;br /&gt;&lt;strong&gt;Predefined Constants&lt;/strong&gt;&lt;br /&gt;PHP provides some built in constants for you. For example __FILE__ returns the name of the file that PHP is using. __LINE__ returns the line number that php is running and PHP_VERSION returns what php version your script is being run on.&lt;br /&gt;&lt;strong&gt; Data types&lt;/strong&gt;&lt;br /&gt; Different types of data will take up different amounts of memory and may then be treated different in the script that you write. PHP will automatically determine the data type for the variable the time data is assigned to it. Some examples of data types are boolean, integer, float, string, object, array, resource, null (an uninitialized value).&lt;br /&gt;&lt;strong&gt;The Assignment operator&lt;/strong&gt;&lt;br /&gt; The equals sign (=) is an assignment operator and will put the value on the right hand site and assign it to the left hand side.&lt;br /&gt;&lt;strong&gt;Arithmetic Operators&lt;/strong&gt;&lt;br /&gt;Arithmetic operators perform mathematic operations on the values you want them to (providing they are a number). Some examples are addition (+), subtraction (-), division (/), multiplication (*), modulus (%). You can increment numbers by putting two addition operators nxet to eachother like so: (++). PHP provides combined operators which allow you to transform the left hand operand and return a result, while also modifying the original value of the variable. To return 'x' and and 5 to 'x' on the same line you would use '$x +=5.'&lt;br /&gt;&lt;strong&gt;The Concatanation Operator&lt;/strong&gt;&lt;br /&gt;The concatanation operator allows you to join strings together. It is represented by a single period (.). Expressions, calculations and variables can also be concataned and the data type returned will aloways be that of a string.&lt;br /&gt;&lt;strong&gt;The Comparison Operator&lt;/strong&gt;&lt;br /&gt;Comparison operators perform comparative tests using their operands and return the boolean value true if the test is succesful and false if it false. Some examples are Equivalence (==), Non-equivalence (!=), greater than (&gt;), less than or equal to (&lt;=). You can use logical operators such as Or (), and (&amp;amp;&amp;amp;) and Not (!) to extend comparisons using the if() statement.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1066058856285499993-480680588418058485?l=saravananmarychezhiyan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saravananmarychezhiyan.blogspot.com/feeds/480680588418058485/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1066058856285499993&amp;postID=480680588418058485' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/480680588418058485'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/480680588418058485'/><link rel='alternate' type='text/html' href='http://saravananmarychezhiyan.blogspot.com/2009/06/building-blocks-of-php.html' title='Building Blocks of PHP'/><author><name>chezhiyan</name><uri>http://www.blogger.com/profile/01455777242392052174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='http://1.bp.blogspot.com/_OG2OE19hbGc/SuPTRM0vRLI/AAAAAAAAAD8/EIiWelThIl0/S220/pmk.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1066058856285499993.post-1938276903220792096</id><published>2009-06-16T19:47:00.000-07:00</published><updated>2009-06-16T19:53:06.465-07:00</updated><title type='text'>Keyboard Shortcut Keys in photoshop</title><content type='html'>&lt;span style="font-size:85%;"&gt;The following are some of the short cut keys that are available in Photoshop 5. Presumably most (if not all) of them should also be available in other versions of Photoshop. (Except where indicated, Mac users should substitute the Command key wherever the CTRL key is mentioned below.)&lt;br /&gt;&lt;strong&gt;CTRL+A&lt;/strong&gt;&lt;br /&gt;Select All (Select menu)&lt;br /&gt;&lt;strong&gt;CTRL+B&lt;/strong&gt;&lt;br /&gt;Adjust Colour Balance (Image menu)&lt;br /&gt;&lt;strong&gt;CTRL+C&lt;/strong&gt;&lt;br /&gt;Copy (Edit menu)&lt;br /&gt;&lt;strong&gt;Shift+CTRL+C&lt;/strong&gt;&lt;br /&gt;Copy Merged (Edit Menu)&lt;br /&gt;&lt;strong&gt;CTRL+D&lt;/strong&gt;&lt;br /&gt;Deselect (Select menu)&lt;br /&gt;&lt;strong&gt;Shift+CTRL+D&lt;/strong&gt;&lt;br /&gt;Reselect (Select menu)&lt;br /&gt;&lt;strong&gt;CTRL+E&lt;/strong&gt;&lt;br /&gt;Merge Down (Layer menu)&lt;br /&gt;&lt;strong&gt;Shift+CTRL+E&lt;/strong&gt;&lt;br /&gt;Merge Visible (Layer menu)&lt;br /&gt;&lt;strong&gt;CTRL+F&lt;/strong&gt;&lt;br /&gt;Last Filter (Filter menu)&lt;br /&gt;&lt;strong&gt;Shift+CTRL+F&lt;/strong&gt;&lt;br /&gt;fade (Filter menu)&lt;br /&gt;&lt;strong&gt;CTRL+G&lt;/strong&gt;&lt;br /&gt;Group with Previous (Layer menu)&lt;br /&gt;&lt;strong&gt;Shift+CTRL+G&lt;/strong&gt;&lt;br /&gt;Ungroup (Layer menu)&lt;br /&gt;&lt;strong&gt;CTRL+H&lt;/strong&gt;&lt;br /&gt;Hide Edges (View menu)&lt;br /&gt;&lt;strong&gt;Shift+CTRL+H&lt;/strong&gt;&lt;br /&gt;Hide Path (View menu)&lt;br /&gt;&lt;strong&gt;CTRL+I&lt;/strong&gt;&lt;br /&gt;Adjust Invert (Image menu)&lt;br /&gt;&lt;strong&gt;Shift+CTRL+I&lt;/strong&gt;&lt;br /&gt;Invert Selection (Select menu)&lt;br /&gt;&lt;strong&gt;CTRL+J&lt;/strong&gt;&lt;br /&gt;New Layer via Copy (Layer menu)&lt;br /&gt;&lt;strong&gt;Shift+CTRL+J&lt;/strong&gt;&lt;br /&gt;New Layer via Cut (Layer menu)&lt;br /&gt;&lt;strong&gt;CTRL+K&lt;/strong&gt;&lt;br /&gt;General Preferences (File menu)&lt;br /&gt;&lt;strong&gt;CTRL+L&lt;/strong&gt;&lt;br /&gt;Adjust Levels (Image menu)&lt;br /&gt;&lt;strong&gt;Shift+CTRL+L&lt;/strong&gt;&lt;br /&gt;Adjust Auto Levels (Image menu)&lt;br /&gt;&lt;strong&gt;CTRL+M&lt;/strong&gt;&lt;br /&gt;Adjust Curves (Image menu)&lt;br /&gt;&lt;strong&gt;CTRL+N&lt;/strong&gt;&lt;br /&gt;New (File menu)&lt;br /&gt;&lt;strong&gt;Shift+CTRL+N&lt;/strong&gt;&lt;br /&gt;New Layer (Layer menu)&lt;br /&gt;&lt;strong&gt;CTRL+O&lt;/strong&gt;&lt;br /&gt;Open (File menu)&lt;br /&gt;&lt;strong&gt;Alt+CTRL+O&lt;/strong&gt;&lt;br /&gt;Open As (File menu)&lt;br /&gt;&lt;strong&gt;CTRL+P&lt;/strong&gt;&lt;br /&gt;Print (File menu)&lt;br /&gt;&lt;strong&gt;Shift+CTRL+P&lt;/strong&gt;&lt;br /&gt;Page Setup (File menu)&lt;br /&gt;&lt;strong&gt;CTRL+R&lt;/strong&gt;&lt;br /&gt;Show Rulers (View menu)&lt;br /&gt;&lt;strong&gt;CTRL+S&lt;/strong&gt;&lt;br /&gt;Save (File menu)&lt;br /&gt;&lt;strong&gt;Shift+CTRL+S&lt;/strong&gt;&lt;br /&gt;Save As (File menu)&lt;br /&gt;&lt;strong&gt;Option+Command+S&lt;/strong&gt;&lt;br /&gt;Save a Copy (File menu - Mac only).&lt;br /&gt;&lt;strong&gt;CTRL+T&lt;/strong&gt;&lt;br /&gt;Free Transform (Edit menu)&lt;br /&gt;&lt;strong&gt;Shift+CTRL+T&lt;/strong&gt;&lt;br /&gt;Transform Again (Edit menu)&lt;br /&gt;&lt;strong&gt;CTRL+U&lt;/strong&gt;&lt;br /&gt;Adjust Hue/Saturation (Image menu)&lt;br /&gt;&lt;strong&gt;Shift+CTRL+U&lt;/strong&gt;&lt;br /&gt;Adjust Deaturate (Image menu)&lt;br /&gt;&lt;strong&gt;CTRL+V&lt;/strong&gt;&lt;br /&gt;Paste (Edit menu)&lt;br /&gt;&lt;strong&gt;Shift+CTRL+V&lt;/strong&gt;&lt;br /&gt;Paste Into (Edit menu)&lt;br /&gt;&lt;strong&gt;CTRL+W&lt;/strong&gt;&lt;br /&gt;Close (File menu)&lt;br /&gt;&lt;strong&gt;CTRL+X&lt;/strong&gt;&lt;br /&gt;Cut (Edit menu)&lt;br /&gt;&lt;strong&gt;CTRL+Y&lt;/strong&gt;&lt;br /&gt;Preview - CYMK (View menu)&lt;br /&gt;&lt;strong&gt;Shift+CTRL+Y&lt;/strong&gt;&lt;br /&gt;Gamut Warning (View menu)&lt;br /&gt;&lt;strong&gt;CTRL+Z&lt;/strong&gt;&lt;br /&gt;Undo (Edit menu)&lt;br /&gt;&lt;strong&gt;CTRL+0&lt;/strong&gt;&lt;br /&gt;Fit on Screen (View menu)&lt;br /&gt;&lt;strong&gt;Shift+CTRL+0&lt;/strong&gt;&lt;br /&gt;Actual Pixels (View menu - windows only)&lt;br /&gt;&lt;strong&gt;Alt+Cmd+0&lt;/strong&gt;&lt;br /&gt;Actual Pixels (View menu - mac only)&lt;br /&gt;&lt;strong&gt;CTRL+]&lt;/strong&gt;&lt;br /&gt;Arrange - Bring Forward (Layer menu)&lt;br /&gt;&lt;strong&gt;Shift+CTRL+]&lt;/strong&gt;&lt;br /&gt;Arrange - Bring to Front (Layer menu)&lt;br /&gt;&lt;strong&gt;CTRL+[&lt;/strong&gt;&lt;br /&gt;Arrange - Send Backward (Layer menu)&lt;br /&gt;&lt;strong&gt;Shift+CTRL+[&lt;/strong&gt;&lt;br /&gt;Arrange - Send to Back (Layer menu)&lt;br /&gt;&lt;strong&gt;CTRL++&lt;/strong&gt;&lt;br /&gt;Zoom In (View menu)&lt;br /&gt;&lt;strong&gt;CTRL+-&lt;/strong&gt;&lt;br /&gt;Zoom Out (View menu)&lt;br /&gt;&lt;strong&gt;CTRL+;&lt;/strong&gt;&lt;br /&gt;Hide Guides (View menu)&lt;br /&gt;&lt;strong&gt;Shift+CTRL+;&lt;br /&gt;&lt;/strong&gt;Snap to Guides (View menu)&lt;br /&gt;&lt;strong&gt;Alt+CTRL+;&lt;/strong&gt;&lt;br /&gt;Lock Guides (View menu)&lt;br /&gt;&lt;strong&gt;CTRL+"&lt;/strong&gt;&lt;br /&gt;Show Grid (View menu)&lt;br /&gt;&lt;strong&gt;Shift+CTRL+"&lt;/strong&gt;&lt;br /&gt;Snap to Grid (View menu)&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1066058856285499993-1938276903220792096?l=saravananmarychezhiyan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saravananmarychezhiyan.blogspot.com/feeds/1938276903220792096/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1066058856285499993&amp;postID=1938276903220792096' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/1938276903220792096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/1938276903220792096'/><link rel='alternate' type='text/html' href='http://saravananmarychezhiyan.blogspot.com/2009/06/keyboard-shortcut-keys-in-photoshop.html' title='Keyboard Shortcut Keys in photoshop'/><author><name>chezhiyan</name><uri>http://www.blogger.com/profile/01455777242392052174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='http://1.bp.blogspot.com/_OG2OE19hbGc/SuPTRM0vRLI/AAAAAAAAAD8/EIiWelThIl0/S220/pmk.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1066058856285499993.post-1181768869201378580</id><published>2009-06-16T19:41:00.000-07:00</published><updated>2009-06-16T19:46:31.802-07:00</updated><title type='text'>How to save a tool with the Tool Preset Palette.</title><content type='html'>Before I started working on this, I'd never used the Tool Preset Palette. It was just one of those five thousand pull down menus I was always opening by mistake.&lt;br /&gt;As with many things in Photoshop, there are multiple ways to get to the Tool Preset Palette. Here are two:&lt;br /&gt;(1) A pull down menu "Tool Preset Picker" (TPP)on the left of the Options Bar.&lt;br /&gt;(2) A tab on the History Palette.&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_OG2OE19hbGc/SjhYwAwb9RI/AAAAAAAAADc/9YmGGErq1s0/s1600-h/scshot01.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5348122139362587922" style="WIDTH: 201px; CURSOR: hand; HEIGHT: 164px" alt="" src="http://2.bp.blogspot.com/_OG2OE19hbGc/SjhYwAwb9RI/AAAAAAAAADc/9YmGGErq1s0/s400/scshot01.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/_OG2OE19hbGc/SjhYv90e-NI/AAAAAAAAADU/xzcln75Uwp0/s1600-h/scshot02.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5348122138574256338" style="WIDTH: 248px; CURSOR: hand; HEIGHT: 154px" alt="" src="http://4.bp.blogspot.com/_OG2OE19hbGc/SjhYv90e-NI/AAAAAAAAADU/xzcln75Uwp0/s400/scshot02.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;It works like this.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://3.bp.blogspot.com/_OG2OE19hbGc/SjhYlqEuWdI/AAAAAAAAADM/O5k9oAWy8F8/s1600-h/scshot03.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5348121961474972114" style="WIDTH: 400px; CURSOR: hand; HEIGHT: 135px" alt="" src="http://3.bp.blogspot.com/_OG2OE19hbGc/SjhYlqEuWdI/AAAAAAAAADM/O5k9oAWy8F8/s400/scshot03.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;Choose the tool and settings you wish to save. In this case I have the Pencil tool, set to 4 pixels, and black.&lt;br /&gt;Click on the little Arrow button in the upper right corner of the TPP or the History Palette, and select “New Tool Preset.”&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/_OG2OE19hbGc/SjhYbwle12I/AAAAAAAAADE/KYDFUItwuMw/s1600-h/scshot04.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5348121791424288610" style="WIDTH: 400px; CURSOR: hand; HEIGHT: 91px" alt="" src="http://4.bp.blogspot.com/_OG2OE19hbGc/SjhYbwle12I/AAAAAAAAADE/KYDFUItwuMw/s400/scshot04.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;A window will pop up with a field for naming the preset. If the tool is a brush or pencil, an option is provided for saving the color with the preset. You can accept the name PhotoShop offers, or make up your own. You could use your friend's names, but It's easier to keep track of them if the name is relevant (and some of us don't have that many friends). &lt;img id="BLOGGER_PHOTO_ID_5348121537620960386" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 393px; CURSOR: hand; HEIGHT: 400px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_OG2OE19hbGc/SjhYM_GDZII/AAAAAAAAAC8/K22Hb-Tw9Jc/s400/scshot05.gif" border="0" /&gt;&lt;br /&gt;&lt;div&gt;When you have finished defining your preset tools, use the TPP menu to Save Tool Presets. I recommend saving your new set under a unique name to distinguish it from your default tool presets. (I named mine after my favorite peripheral, “X-keys”).&lt;br /&gt;So now you too can have a 40 pixel, Color Burn Mode, 42% Opacity, Magenta brush named Maggie in your TPP, but you still have to mouse away from the drawing to open the menu and get the tool, right? Not if you keep going.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1066058856285499993-1181768869201378580?l=saravananmarychezhiyan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saravananmarychezhiyan.blogspot.com/feeds/1181768869201378580/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1066058856285499993&amp;postID=1181768869201378580' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/1181768869201378580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/1181768869201378580'/><link rel='alternate' type='text/html' href='http://saravananmarychezhiyan.blogspot.com/2009/06/how-to-save-tool-with-tool-preset.html' title='How to save a tool with the Tool Preset Palette.'/><author><name>chezhiyan</name><uri>http://www.blogger.com/profile/01455777242392052174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='http://1.bp.blogspot.com/_OG2OE19hbGc/SuPTRM0vRLI/AAAAAAAAAD8/EIiWelThIl0/S220/pmk.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_OG2OE19hbGc/SjhYwAwb9RI/AAAAAAAAADc/9YmGGErq1s0/s72-c/scshot01.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1066058856285499993.post-2300689212241860921</id><published>2009-01-08T21:09:00.000-08:00</published><updated>2009-01-08T21:51:26.613-08:00</updated><title type='text'>Redirection based on browser type</title><content type='html'>&lt;strong&gt;Intro: This tutorial will teach you how to make a script that will redirect users based on their browser type to different pages or url. It is restricted to two browser types only which are Internet Explorer and Netscape Navigator. You are not going to learn how to write this script, but learn how to use Dreamweaver to make such a script.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;1:- &lt;/strong&gt;First open Dreamweaver and make a new page. Go to &lt;span style="color:#666666;"&gt;&lt;strong&gt;Window &gt; Behaviors&lt;/strong&gt;&lt;/span&gt; if your behaviors panel is not open. Then click on the &lt;span style="color:#666666;"&gt;&lt;strong&gt;+&lt;/strong&gt;&lt;/span&gt; sign and choose &lt;span style="color:#666666;"&gt;&lt;strong&gt;Check Browser&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p align="center"&gt;&lt;img height="172" src="file:///C:/Program%20Files/Ades%20Design%20eBook/Additional/dreamweaver/images/redirect_1.gif" width="211" /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p align="left"&gt;&lt;strong&gt;2:-&lt;/strong&gt;You will be shown this window when you choose the Check Browser Option.&lt;/p&gt;&lt;br /&gt;&lt;p align="center"&gt;&lt;img height="329" src="file:///C:/Program%20Files/Ades%20Design%20eBook/Additional/dreamweaver/images/redirect_2.gif" width="495" /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p align="left"&gt;Here you should make your choices, I have chosen here if the Browser is: &lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="color:#ff3300;"&gt;Netscapte Navigator 4.0 and later - go to www.yahoo.com&lt;/span&gt; and if it is &lt;span style="color:#ff3300;"&gt;Netscape &lt;a href="http://www.google.com/"&gt;www.google.com&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;After you make your selection Click OK&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="color:#ff3300;"&gt;&lt;span style="color:#000000;"&gt;&lt;strong&gt;3:-&lt;/strong&gt;Make sure &lt;/span&gt;&lt;strong&gt;&lt;span style="color:#666666;"&gt;onLoad &lt;/strong&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;option is chosen under the Events, we want users to be redirected when this page loads. &lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;br /&gt;&lt;p align="center"&gt;&lt;span style="color:#000000;"&gt;&lt;img height="138" src="file:///C:/Program%20Files/Ades%20Design%20eBook/Additional/dreamweaver/images/redirect_3.gif" width="423" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="color:#000000;"&gt;You are done, preview your page and see where you are redirected based on your Browser Type.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="color:#000000;"&gt;&lt;strong&gt;4:- &lt;/strong&gt;You could as well redirect all the users who are using Netscape Navigator to one page and Internet Explorer user to other. This way if you have two versions of you website for specific browser types, you could redirect them to respectie pages which are viewed best by their specific browser types. It is matter of how you use this script.&lt;strong&gt; &lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="color:#000000;"&gt;&lt;strong&gt;5:-&lt;/strong&gt;Another option is redirect all four options to one page, then it would become a normal redirection script that all the users to one specific page.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="color:#000000;"&gt;Here is the code that is generated by Dreamweaver after this tutorial:&lt;/span&gt;&lt;/p&gt;&lt;img height="420" src="file:///C:/Documents%20and%20Settings/design_ichart/Desktop/theam/blogger/3.jpg" width="587" /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1066058856285499993-2300689212241860921?l=saravananmarychezhiyan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saravananmarychezhiyan.blogspot.com/feeds/2300689212241860921/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1066058856285499993&amp;postID=2300689212241860921' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/2300689212241860921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/2300689212241860921'/><link rel='alternate' type='text/html' href='http://saravananmarychezhiyan.blogspot.com/2009/01/redirection-based-on-browser-type.html' title='Redirection based on browser type'/><author><name>chezhiyan</name><uri>http://www.blogger.com/profile/01455777242392052174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='http://1.bp.blogspot.com/_OG2OE19hbGc/SuPTRM0vRLI/AAAAAAAAAD8/EIiWelThIl0/S220/pmk.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1066058856285499993.post-8550448273127184674</id><published>2009-01-08T21:02:00.000-08:00</published><updated>2009-01-08T21:07:58.773-08:00</updated><title type='text'>How to open a Fixed (size) Window</title><content type='html'>&lt;strong&gt;1:-&lt;/strong&gt;Opening a fixed window can be very useful especially if you want a user to see some useful things in that particular window, it can be a photo gallery or Rules &amp;amp; Regulations that you want to display when the user clicks...etc. You can display anything on it and you can specify the size as well, so that the window size corresponds to the content size. Let's get started.&lt;br /&gt;&lt;p&gt;Open a new page in your Dreamweaver and put a button, download the button below for your working purposes or put your own button if you have one ready. Save the page as &lt;span style="color:#666666;"&gt;&lt;strong&gt;fixed_window.html&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;img height="30" src="file:///C:/Program%20Files/Ades%20Design%20eBook/Additional/dreamweaver/images/mouse_over.gif" width="200" /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000000;"&gt;&lt;strong&gt;2:-&lt;/strong&gt;Now click on the button that you have just inserted to the page, and go to Behaviors Panel. If Behaviors Panel is not open go to Window &gt; Behaviors (Shift + F3) to open it. Click on the plus (+) sign and choose&lt;/span&gt;&lt;strong&gt;&lt;span style="color:#000000;"&gt; Open Browser Window.&lt;/span&gt; &lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;img height="147" src="file:///C:/Program%20Files/Ades%20Design%20eBook/Additional/dreamweaver/images/fixed_1.gif" width="211" /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000000;"&gt;&lt;strong&gt;3:-&lt;/strong&gt;Now, you should see a pop-up window, as shown below.&lt;/span&gt;&lt;/p&gt;&lt;p align="center"&gt;&lt;img height="205" src="file:///C:/Program%20Files/Ades%20Design%20eBook/Additional/dreamweaver/images/fixed_2.gif" width="486" /&gt;&lt;/p&gt;&lt;p align="left"&gt;For &lt;span style="color:#666666;"&gt;&lt;strong&gt;URL to Display&lt;/strong&gt;&lt;/span&gt; opton you can enter a Web Address or a page name. For the size of the window you can specify the width and height in pixels. I have specified 500 pixels for width and 400 pixels for height. I know it will be a small window for a page like Google so I have ticked the &lt;span style="color:#666666;"&gt;&lt;strong&gt;Resize Handlers&lt;/strong&gt;&lt;/span&gt;. This will display Resize Handlers to the user so that he can adjust it. If you don't tick this it will be a fixed size window 500 by 400 which will not be resizable. Other options are pretty understandable, you can just try them if you don't know what are they for&lt;/p&gt;&lt;p&gt;Click OK.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;4:-&lt;/strong&gt;Now you have almost completed your pop-up window, there is one more thing left which is assiging action to your button. You need to specify an action to your button, whether you want a user to click to see the window, or mouse over it...etc. See your &lt;span style="color:#666666;"&gt;&lt;strong&gt;Behaviors Panel&lt;/strong&gt;&lt;/span&gt; again and you should see that the action is already specified, in my case it is &lt;span style="color:#666666;"&gt;&lt;strong&gt;onMouseOver&lt;/strong&gt;&lt;/span&gt;. If you want to choose any other action just click on the triangle on the right and you will be displayed with other Actions to choose from.&lt;/p&gt;&lt;p align="center"&gt;&lt;img height="211" src="file:///C:/Program%20Files/Ades%20Design%20eBook/Additional/dreamweaver/images/fixed_3.gif" width="429" /&gt;&lt;/p&gt;&lt;p&gt;If you want to Edit your window preferences, such as changing the size or url...etc. Just double click on the &lt;span style="color:#666666;"&gt;&lt;strong&gt;Open Browser Window&lt;/strong&gt;&lt;/span&gt; word on the right, in &lt;span style="color:#666666;"&gt;&lt;strong&gt;Behaviors Panel.&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;Now, You are done! That was pretty easy isn't it?&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1066058856285499993-8550448273127184674?l=saravananmarychezhiyan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saravananmarychezhiyan.blogspot.com/feeds/8550448273127184674/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1066058856285499993&amp;postID=8550448273127184674' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/8550448273127184674'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/8550448273127184674'/><link rel='alternate' type='text/html' href='http://saravananmarychezhiyan.blogspot.com/2009/01/how-to-open-fixed-size-window.html' title='How to open a Fixed (size) Window'/><author><name>chezhiyan</name><uri>http://www.blogger.com/profile/01455777242392052174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='http://1.bp.blogspot.com/_OG2OE19hbGc/SuPTRM0vRLI/AAAAAAAAAD8/EIiWelThIl0/S220/pmk.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1066058856285499993.post-6618639329210227650</id><published>2009-01-08T20:39:00.000-08:00</published><updated>2009-01-08T21:02:05.262-08:00</updated><title type='text'>Create Rollover/MouseOver effect</title><content type='html'>This tutorial will teach you how to do a MouseOver effect on your buttons.&lt;br /&gt;&lt;strong&gt;1:-&lt;/strong&gt;                                        &lt;br /&gt;&lt;p align="center"&gt;&lt;img height="22" src="file:///C:/Program%20Files/Ades%20Design%20eBook/Additional/dreamweaver/images/java_about_off.gif" width="90" /&gt;        &lt;img height="22" src="file:///C:/Program%20Files/Ades%20Design%20eBook/Additional/dreamweaver/images/java_about_on.gif" width="90" /&gt;&lt;/p&gt;&lt;p align="left"&gt;Download these two buttons to do this tutorial or use your own buttons if you have one.&lt;br /&gt;&lt;strong&gt;2:-&lt;/strong&gt; Open a new page in Dreamweaver, and and press&lt;strong&gt; Rollover Image&lt;/strong&gt; button on the &lt;strong&gt;Common&lt;/strong&gt; panel. &lt;/p&gt;&lt;p&gt;                           &lt;img height="128" src="file:///C:/Program%20Files/Ades%20Design%20eBook/Additional/dreamweaver/images/mouseOver1.gif" width="444" /&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;3:-&lt;/strong&gt; After you have clicked the Rollover Image you should see this pop-up window.       &lt;/p&gt;&lt;p align="center"&gt;&lt;img height="245" src="file:///C:/Program%20Files/Ades%20Design%20eBook/Additional/dreamweaver/images/MouseOver2.gif" width="589" /&gt;&lt;/p&gt;&lt;p&gt;Fill in the empty fields with the respective texts. Give your image a name, if it is a menu item such as About Us in our case, give it "About Us" name. &lt;strong&gt;Original Image&lt;/strong&gt; field is the field which should contain your initial image. &lt;strong&gt;Rollover Image&lt;/strong&gt; field should contain your second image which should show when the user MouseOvers. The last two fields are self explanatory.&lt;/p&gt;&lt;p&gt;Once you finish click OK and save your page. Hit F12 to see your page.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;4:-&lt;/strong&gt;You can see your rollover actions in Behaviors Panel. Go to Window &gt; Behaviors to open the panel if it is not already open. To edit double click on the actions on the right side.                         &lt;/p&gt;&lt;p align="center"&gt;&lt;img height="157" src="file:///C:/Program%20Files/Ades%20Design%20eBook/Additional/dreamweaver/images/mouseOver3.gif" width="428" /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1066058856285499993-6618639329210227650?l=saravananmarychezhiyan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saravananmarychezhiyan.blogspot.com/feeds/6618639329210227650/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1066058856285499993&amp;postID=6618639329210227650' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/6618639329210227650'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/6618639329210227650'/><link rel='alternate' type='text/html' href='http://saravananmarychezhiyan.blogspot.com/2009/01/create-rollovermouseover-effect.html' title='Create Rollover/MouseOver effect'/><author><name>chezhiyan</name><uri>http://www.blogger.com/profile/01455777242392052174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='http://1.bp.blogspot.com/_OG2OE19hbGc/SuPTRM0vRLI/AAAAAAAAAD8/EIiWelThIl0/S220/pmk.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1066058856285499993.post-2368483237300955529</id><published>2009-01-08T20:15:00.000-08:00</published><updated>2009-01-08T20:38:00.895-08:00</updated><title type='text'>Creating CSS in Dreamweaver MX 2004</title><content type='html'>&lt;strong&gt;1:- &lt;/strong&gt;I hope you know the advantages of using CSS instead of tags for your texts and even for your overall website designs. I am not going to discuss that here, if you would like to tknow more on CSS advantages please visit CSS Zen Garden. In this tutorial I will discuss how to create CSS tags in Dreamweaver and apply them to texts. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2:-&lt;/strong&gt; There are two types of CSS creation, one is to create inside the html page and apply to the same page and another to create it as a separate .css file. If you are working with a single page, then it is better to create CSS inside the page, but if you are working with many pages then it is better to create a separate file because that way you can apply this file to your other pages. That will save you time, you will not have to create it again and again for every page. Later it will save you time in updating your page in case if you want to change the size of your text, you just have to change in one file and all the pages will be updated automatically. &lt;strong&gt;&lt;br /&gt;3:-&lt;/strong&gt; To apply CSS to your current working page, please go to Edit &gt; Preferences &gt; General and tick where it says Use CSS instead of HTML tags and click OK. See below.&lt;br /&gt;&lt;br /&gt;&lt;img id="BLOGGER_PHOTO_ID_5289143653736104386" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 469px; CURSOR: hand; HEIGHT: 192px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_OG2OE19hbGc/SWbQIUbzwcI/AAAAAAAAAB0/DpfCpJfKCdM/s400/css1.gif" border="0" /&gt; Once you make these changes in preferences dreamweaver will apply CSS to your texts whenever you change font size, color, face...etc And it will create CSS codes accordingly under the name style1, style2...etc You can change these names to meaningful words if you want.&lt;br /&gt;&lt;/span&gt;&lt;strong&gt;4:-&lt;/strong&gt; To see how it works, open a new page and type some words in the page and change font size or color, and see how it has created a CSS style and applied it to your text. You can see it from properties box as shown below. &lt;img id="BLOGGER_PHOTO_ID_5289144203166662610" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 373px; CURSOR: hand; HEIGHT: 104px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_OG2OE19hbGc/SWbQoTOQv9I/AAAAAAAAAB8/BNgOMcTJcLI/s400/css2.gif" border="0" /&gt;You can see your CSS styles in your CSS Styles Panel. Go to Window &gt; CSS Styles if the panel is not already open. In CSS Styles Panel you can edit your styles, if you want to edit just right click on your CSS style and choose Edit... and you will be displayed with a pop-up window, where you can specify properties. &lt;img id="BLOGGER_PHOTO_ID_5289144653979650018" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 251px; CURSOR: hand; HEIGHT: 102px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_OG2OE19hbGc/SWbRCiodB-I/AAAAAAAAACE/OVZLQWoi3tE/s400/css3.gif" border="0" /&gt;&lt;br /&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;p&gt;&lt;strong&gt;5:- &lt;/strong&gt;We have learned how to create a CSS style inside the page in the previous page, now we will learn how to create a separate CSS file. Open your CSS Styles Panel and click on the New CSS Style button. &lt;img id="BLOGGER_PHOTO_ID_5289147013065870498" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 251px; CURSOR: hand; HEIGHT: 217px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_OG2OE19hbGc/SWbTL26cDKI/AAAAAAAAACM/ioEmbNmdQMM/s400/css4.jpg" border="0" /&gt;&lt;/p&gt;&lt;/div&gt;&lt;strong&gt;6:-&lt;/strong&gt; You will be shown a new pop-up window like below. Choose a name for your CSS style. For the Selector Type: use Class (can apply to any tag) , and for Define in: use (New Style Sheet File). Press OK.&lt;img id="BLOGGER_PHOTO_ID_5289147255566218130" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 165px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_OG2OE19hbGc/SWbTZ-TBs5I/AAAAAAAAACU/rN2V2Bhe64Q/s400/css5.jpg" border="0" /&gt;&lt;/div&gt;&lt;strong&gt;7:-&lt;/strong&gt; Give your CSS file a name and Press Save. In step 6 you gave a name to your CSS Style, here you are giving a name to your CSS File. Please note that in one CSS File you can have many CSS Styles, so don't confuse these namings. &lt;img id="BLOGGER_PHOTO_ID_5289147521601001922" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 361px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_OG2OE19hbGc/SWbTpdWqWcI/AAAAAAAAACc/FEz8xuLhvcU/s400/css6.gif" border="0" /&gt;&lt;/div&gt;&lt;strong&gt;8:-&lt;/strong&gt;Once you press save you will be shown another pop-up window where you define your CSS properties. Please see below. Once you define the properties of your text, Press OK.&lt;img id="BLOGGER_PHOTO_ID_5289147776703489298" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 285px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_OG2OE19hbGc/SWbT4Tr1ZRI/AAAAAAAAACk/-3P2C_HZAqw/s400/css7.gif" border="0" /&gt;&lt;/div&gt;After you press OK your new CSS Style will appear in the CSS Styles Panel. &lt;img id="BLOGGER_PHOTO_ID_5289148006530947586" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 254px; CURSOR: hand; HEIGHT: 191px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_OG2OE19hbGc/SWbUFr2-GgI/AAAAAAAAACs/sqgi8TKeKc4/s400/css8.gif" border="0" /&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;9:-&lt;/strong&gt;To apply your new CSS Style to any text, just highlight the text and choose your style from Properties Panel. &lt;img id="BLOGGER_PHOTO_ID_5289148310686758002" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 381px; CURSOR: hand; HEIGHT: 199px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_OG2OE19hbGc/SWbUXY7XdHI/AAAAAAAAAC0/99sKuQ6bFL8/s400/css9.jpg" border="0" /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1066058856285499993-2368483237300955529?l=saravananmarychezhiyan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saravananmarychezhiyan.blogspot.com/feeds/2368483237300955529/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1066058856285499993&amp;postID=2368483237300955529' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/2368483237300955529'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/2368483237300955529'/><link rel='alternate' type='text/html' href='http://saravananmarychezhiyan.blogspot.com/2009/01/creating-css-in-dreamweaver-mx-2004.html' title='Creating CSS in Dreamweaver MX 2004'/><author><name>chezhiyan</name><uri>http://www.blogger.com/profile/01455777242392052174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='http://1.bp.blogspot.com/_OG2OE19hbGc/SuPTRM0vRLI/AAAAAAAAAD8/EIiWelThIl0/S220/pmk.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_OG2OE19hbGc/SWbQIUbzwcI/AAAAAAAAAB0/DpfCpJfKCdM/s72-c/css1.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1066058856285499993.post-5315078255431327858</id><published>2008-07-21T05:06:00.000-07:00</published><updated>2008-12-10T05:54:25.944-08:00</updated><title type='text'>PHP and Web Design</title><content type='html'>1.Open Notepad and type the following as shown below&lt;br /&gt;&lt;br /&gt;Save it as header.html&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_OG2OE19hbGc/SIR9gyjx4gI/AAAAAAAAAA0/qVZ9oOznQF0/s1600-h/header.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5225439469937746434" style="CURSOR: hand" alt="" src="http://3.bp.blogspot.com/_OG2OE19hbGc/SIR9gyjx4gI/AAAAAAAAAA0/qVZ9oOznQF0/s400/header.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2.Create new file in your notepad and type the following&lt;br /&gt;&lt;br /&gt;Save it as main.html&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_OG2OE19hbGc/SIR9T0Pw8bI/AAAAAAAAAAs/-DXnxpG23QM/s1600-h/main.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5225439247052370354" style="CURSOR: hand" alt="" src="http://2.bp.blogspot.com/_OG2OE19hbGc/SIR9T0Pw8bI/AAAAAAAAAAs/-DXnxpG23QM/s400/main.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3. Create one more new file and type the following&lt;br /&gt;&lt;br /&gt;Save it as footer.html&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_OG2OE19hbGc/SIR9JKAEdcI/AAAAAAAAAAk/divRe-q3i34/s1600-h/footer.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5225439063913559490" style="CURSOR: hand" alt="" src="http://3.bp.blogspot.com/_OG2OE19hbGc/SIR9JKAEdcI/AAAAAAAAAAk/divRe-q3i34/s400/footer.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4. Next we link them together. Open another new file in your notepad&lt;br /&gt;&lt;br /&gt;and type the following. This is how the linking in PHP done.&lt;br /&gt;&lt;br /&gt;Save it as index.html. All pages should be in the same folder.&lt;br /&gt;&lt;br /&gt;Otherwise the linking won't work. Now access the index.html through&lt;br /&gt;&lt;br /&gt;your webserver. You should be able to see the following page.&lt;br /&gt;&lt;br /&gt;Now change the contents of each page with respective content, I have&lt;br /&gt;&lt;br /&gt;tried to make it as simple as possible and not to put so much codes inside&lt;br /&gt;&lt;br /&gt;the html, so that you won't get confused. Because once you know how it&lt;br /&gt;&lt;br /&gt;is done, you can replace the contents yourself with complicated codes&lt;br /&gt;&lt;br /&gt;such as tables, javascript, CSS etc. So if you have 100 pages and you have&lt;br /&gt;&lt;br /&gt;to change your Top Menu link, you don't have to go to every page and&lt;br /&gt;&lt;br /&gt;change it manually, just change it in header.html and it is done! Good Luck!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_OG2OE19hbGc/SIR86z7mV4I/AAAAAAAAAAc/_ohxesCByCY/s1600-h/index_p.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5225438817471059842" style="CURSOR: hand" alt="" src="http://4.bp.blogspot.com/_OG2OE19hbGc/SIR86z7mV4I/AAAAAAAAAAc/_ohxesCByCY/s400/index_p.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_OG2OE19hbGc/SIR8uopBKpI/AAAAAAAAAAU/FeCEwHY9YS4/s1600-h/index_pw.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5225438608281905810" style="CURSOR: hand" alt="" src="http://2.bp.blogspot.com/_OG2OE19hbGc/SIR8uopBKpI/AAAAAAAAAAU/FeCEwHY9YS4/s400/index_pw.gif" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1066058856285499993-5315078255431327858?l=saravananmarychezhiyan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saravananmarychezhiyan.blogspot.com/feeds/5315078255431327858/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1066058856285499993&amp;postID=5315078255431327858' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/5315078255431327858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/5315078255431327858'/><link rel='alternate' type='text/html' href='http://saravananmarychezhiyan.blogspot.com/2008/07/php-and-web-design.html' title='PHP and Web Design'/><author><name>chezhiyan</name><uri>http://www.blogger.com/profile/01455777242392052174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='http://1.bp.blogspot.com/_OG2OE19hbGc/SuPTRM0vRLI/AAAAAAAAAD8/EIiWelThIl0/S220/pmk.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_OG2OE19hbGc/SIR9gyjx4gI/AAAAAAAAAA0/qVZ9oOznQF0/s72-c/header.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1066058856285499993.post-3584742298305514166</id><published>2008-07-21T04:57:00.000-07:00</published><updated>2008-12-10T05:54:26.140-08:00</updated><title type='text'>Date and Time in PHP</title><content type='html'>1.Type exactly like below in Notepad or any other HTML Editor and save it as date.&lt;br /&gt;&lt;br /&gt;html in your localhost.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_OG2OE19hbGc/SIR6AzXo1MI/AAAAAAAAAAM/a4WZEZhf0ec/s1600-h/date1.gif"&gt;&lt;img id="BLOGGER_PHOTO_ID_5225435621864559810" style="CURSOR: hand" alt="" src="http://2.bp.blogspot.com/_OG2OE19hbGc/SIR6AzXo1MI/AAAAAAAAAAM/a4WZEZhf0ec/s400/date1.gif" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. Let's go through the code, anything between is considered as a php code by&lt;br /&gt;&lt;br /&gt; the browser. First we are assigning today's date to a variable called $today,&lt;br /&gt;&lt;br /&gt;then on the next line we are displaying it to the browser. echo is php code to&lt;br /&gt;&lt;br /&gt;display any data on the browser.&lt;br /&gt;&lt;br /&gt;As you have noticed already, ("d M Y h:i A") is a date format that we have&lt;br /&gt;&lt;br /&gt; constructed. d is for displaying day, M is for month, and Y is for year, h is for&lt;br /&gt;&lt;br /&gt; hour and i is for minute, and finally A is for displaying AM or PM.&lt;br /&gt;&lt;br /&gt;This is just a one way of displaying the date and time, there are many other&lt;br /&gt;&lt;br /&gt;forms that you can create yourself. Also there are several different forms of&lt;br /&gt;&lt;br /&gt;displaying one data, for example you can display the current month as&lt;br /&gt;&lt;br /&gt;"February" of "Feb" or "02", it is all up to you how you want to display it.&lt;br /&gt;&lt;br /&gt;Below is the additional php codes for displaying date and time&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;a&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;"&gt;&lt;/span&gt;&lt;/strong&gt;Lowercase Ante meridiem and Post meridiem&lt;br /&gt;am or pm&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;strong&gt;A&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;Uppercase Ante meridiem and Post meridiem&lt;br /&gt;AM or PM&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;B&lt;/strong&gt;&lt;br /&gt;Swatch Internet time&lt;br /&gt;000 through 999&lt;br /&gt;&lt;br /&gt;d&lt;br /&gt;Day of the month, 2 digits with leading zeros&lt;br /&gt;01 to 31&lt;br /&gt;&lt;br /&gt;D&lt;br /&gt;A textual representation of a day, three letters&lt;br /&gt;Mon through Sun&lt;br /&gt;&lt;br /&gt;F&lt;br /&gt;A full textual representation of a month, such as January or March&lt;br /&gt;January through December&lt;br /&gt;&lt;br /&gt;g&lt;br /&gt;12-hour format of an hour without leading zeros&lt;br /&gt;1 through 12&lt;br /&gt;&lt;br /&gt;G&lt;br /&gt;24-hour format of an hour without leading zeros&lt;br /&gt;0 through 23&lt;br /&gt;&lt;br /&gt;h&lt;br /&gt;12-hour format of an hour with leading zeros&lt;br /&gt;01 through 12&lt;br /&gt;&lt;br /&gt;H&lt;br /&gt;24-hour format of an hour with leading zeros&lt;br /&gt;00 through 23&lt;br /&gt;&lt;br /&gt;i&lt;br /&gt;Minutes with leading zeros&lt;br /&gt;00 to 59&lt;br /&gt;&lt;br /&gt;I (capital i)&lt;br /&gt;Whether or not the date is in daylights savings time&lt;br /&gt;1 if Daylight Savings Time, 0 otherwise.&lt;br /&gt;&lt;br /&gt;j&lt;br /&gt;Day of the month without leading zeros&lt;br /&gt;1 to 31&lt;br /&gt;&lt;br /&gt;l (lowercase 'L')&lt;br /&gt;A full textual representation of the day of the week&lt;br /&gt;Sunday through Saturday&lt;br /&gt;&lt;br /&gt;L&lt;br /&gt;Whether it's a leap year&lt;br /&gt;1 if it is a leap year, 0 otherwise.&lt;br /&gt;&lt;br /&gt;m&lt;br /&gt;Numeric representation of a month, with leading zeros&lt;br /&gt;01 through 12&lt;br /&gt;&lt;br /&gt;M&lt;br /&gt;A short textual representation of a month, three letters&lt;br /&gt;Jan through Dec&lt;br /&gt;&lt;br /&gt;n&lt;br /&gt;Numeric representation of a month, without leading zeros&lt;br /&gt;1 through 12&lt;br /&gt;&lt;br /&gt;O&lt;br /&gt;Difference to Greenwich time (GMT) in hours&lt;br /&gt;Example: +0200&lt;br /&gt;&lt;br /&gt;r&lt;br /&gt;RFC 822 formatted date&lt;br /&gt;Example: Thu, 21 Dec 2000 16:01:07 +0200&lt;br /&gt;&lt;br /&gt;s&lt;br /&gt;Seconds, with leading zeros&lt;br /&gt;00 through 59&lt;br /&gt;&lt;br /&gt;S&lt;br /&gt;English ordinal suffix for the day of the month, 2 characters&lt;br /&gt;st , nd , rd or th . Works well with j&lt;br /&gt;&lt;br /&gt;t&lt;br /&gt;Number of days in the given month&lt;br /&gt;28 through 31&lt;br /&gt;&lt;br /&gt;T&lt;br /&gt;Timezone setting of this machine&lt;br /&gt;Examples: EST , MDT ...&lt;br /&gt;&lt;br /&gt;U&lt;br /&gt;Seconds since the Unix Epoch (January 1 1970 00:00:00 GMT)&lt;br /&gt;See also time()&lt;br /&gt;&lt;br /&gt;w&lt;br /&gt;Numeric representation of the day of the week&lt;br /&gt;0 (for Sunday) through 6 (for Saturday)&lt;br /&gt;&lt;br /&gt;W&lt;br /&gt;ISO-8601 week number of year, weeks starting on Monday (added in PHP 4.1.0)&lt;br /&gt;Example: 42 (the 42nd week in the year)&lt;br /&gt;&lt;br /&gt;Y&lt;br /&gt;A full numeric representation of a year, 4 digits&lt;br /&gt;Examples: 1999 or 2003&lt;br /&gt;&lt;br /&gt;y&lt;br /&gt;A two digit representation of a year&lt;br /&gt;Examples: 99 or 03&lt;br /&gt;&lt;br /&gt;z&lt;br /&gt;The day of the year (starting from 0)&lt;br /&gt;0 through 365&lt;br /&gt;&lt;br /&gt;Z&lt;br /&gt;Timezone offset in seconds. The offset for timezones west of UTC is always negative, and for those east of UTC is always positive.&lt;br /&gt;-43200 through 43200&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1066058856285499993-3584742298305514166?l=saravananmarychezhiyan.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://saravananmarychezhiyan.blogspot.com/feeds/3584742298305514166/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1066058856285499993&amp;postID=3584742298305514166' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/3584742298305514166'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1066058856285499993/posts/default/3584742298305514166'/><link rel='alternate' type='text/html' href='http://saravananmarychezhiyan.blogspot.com/2008/07/date-and-time-in-php.html' title='Date and Time in PHP'/><author><name>chezhiyan</name><uri>http://www.blogger.com/profile/01455777242392052174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='21' src='http://1.bp.blogspot.com/_OG2OE19hbGc/SuPTRM0vRLI/AAAAAAAAAD8/EIiWelThIl0/S220/pmk.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_OG2OE19hbGc/SIR6AzXo1MI/AAAAAAAAAAM/a4WZEZhf0ec/s72-c/date1.gif' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
