<?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-497541155018092031</id><updated>2012-01-23T05:23:45.546-08:00</updated><category term='How do I send mails with PHP?'/><category term='PHP 5 object oriented'/><category term='include function in php4'/><category term='php camp'/><category term='php5.2'/><category term='PHP question'/><category term='PHP SCRIPT'/><category term='PHP6 new functionality'/><category term='PHP4'/><category term='PHP MEANing'/><category term='Introduction to PHP.PHP 5.2.4'/><category term='php framework'/><category term='file upload in php'/><category term='php how start'/><category term='Cookie in PHP'/><category term='difference between PHP session and cookie'/><category term='difference between PHP4 and PHP5'/><category term='how can I get in?'/><category term='date function php'/><category term='Apache'/><category term='PHP and xml feature'/><category term='Object Model in PHP 5'/><category term='Pera packages'/><category term='php tips and tricks'/><category term='print only select are'/><category term='output controll function in php 5'/><category term='file upload script'/><category term='PHP 4'/><category term='how to install php'/><category term='PHP Pear'/><category term='ODBC Connection'/><category term='memcache code'/><category term='PHP mail manual'/><category term='PHP.ini configuration'/><category term='PHP type cast'/><category term='PHP MVC Framework list'/><category term='php biggener'/><category term='PHP 5'/><category term='print in javascript'/><category term='csv import in php'/><category term='dojo'/><category term='mysql command hosting'/><category term='PHP code'/><category term='smarty'/><category term='I have lost my MySQL root password'/><category term='PHP 5 Types of arrays'/><category term='php manual'/><category term='PHp mail help'/><category term='Mantis'/><category term='Why use Cookie in PHP'/><category term='CSV and PHP'/><category term='memcahce help'/><category term='include function in php5 PHP'/><category term='php5'/><category term='php predifined variable'/><category term='why use session in PHP'/><category term='memcahce function'/><category term='php smarty template engine'/><category term='PHP 4 source code'/><category term='mysql install'/><category term='php6'/><category term='php language'/><category term='Bugs the Bug genie'/><category term='php.ini'/><category term='Types of arrays in PHP 5'/><category term='php object model'/><category term='PHP4 xml'/><category term='PHP installation'/><category term='PHP Types of arrays'/><category term='PHP super global array'/><category term='MooTools'/><category term='php mysql connection'/><category term='Prototype JavaScript Framework'/><category term='new object model with php'/><category term='cake PHP frame work'/><category term='how to create obdc connection'/><category term='javscript and PHP combination'/><category term='php server'/><category term='mysql and php combination'/><category term='print through javascript'/><category term='PHP classes'/><category term='PHP ODBC Connection'/><category term='phpBugTracker'/><category term='PHP Issue Trackers software list'/><category term='apache install'/><category term='Pear PDo'/><category term='PHP'/><category term='print'/><category term='mysql with php'/><category term='PHP 5 classes question'/><category term='PHP5 encapsulation magic'/><category term='PHP Function'/><category term='PHP array in PHP object'/><category term='PHP performance tips'/><category term='mysql_connect() php function'/><category term='Multiple date selection javascript calendar'/><category term='php mail function example'/><category term='javascript calender'/><category term='PHP ODBC'/><category term='PHP5 and XML'/><category term='php smarty'/><category term='PHP 5 source code'/><category term='how to install php on iis'/><category term='PHP multiple answer question'/><category term='memcache in php'/><category term='PHP 5 and PHP 6'/><category term='PHP and javascript'/><category term='pune'/><category term='why choose php with mysql'/><category term='phpcamppune08'/><category term='web devlopment future with PHP'/><category term='javascript multiple date seclection calender'/><category term='add xml integer value'/><category term='php on windows platform'/><category term='MYSQL defination'/><category term='PHP ODBC Connection function'/><category term='free php script'/><category term='php mail script'/><category term='object model'/><category term='Session in PHP'/><category term='mozavi PHP framework'/><category term='rico'/><category term='php start'/><category term='ODBC connection in PHP'/><category term='Mysql hosting'/><category term='php info'/><category term='what is mysql'/><category term='php first code'/><category term='how to use same session in http and https'/><category term='mysql'/><category term='same sessionid problem in http and https'/><category term='php camp at pune'/><category term='scriptaculo'/><category term='How to get unique value form PHP array?'/><category term='smarty installation'/><category term='type casting in php'/><category term='php install on iis'/><category term='http and https same session'/><category term='Read integer value from xml and add thos value'/><category term='PHP + MySQL'/><category term='mysql and php database connectivity'/><category term='wamp server for php and mysql and apache'/><category term='php first programme'/><category term='file upload'/><category term='MYsql datbase'/><category term='Yahoo UI Library'/><category term='PHP Connect with ODBC how?'/><category term='php with mysql why?'/><category term='PHP code example'/><category term='simple XML object in php'/><category term='Mochikit'/><category term='php mail function'/><category term='memcahce artical'/><category term='phpoo code'/><category term='selected area prinout through javascript'/><category term='Connect  Mysql database in php'/><category term='PHP version 6'/><category term='memcache white paper'/><category term='how learn php'/><category term='PHP sourcecode'/><category term='Eventum'/><category term='symfony php framework'/><category term='php expert coding'/><category term='WHUPS'/><category term='PHP code batter'/><category term='LINUX'/><category term='php wamp installation'/><category term='about php'/><category term='PHP oops'/><category term='Working with CSV files in PHP'/><category term='php current date'/><category term='PHP5 xml'/><category term='PHP5 new feature'/><category term='PHP global array'/><category term='LAMP'/><category term='javascript code in php code'/><category term='php camp 2008'/><category term='Mysql CSV to php'/><category term='output controll function'/><category term='php example'/><category term='iis installation in php'/><category term='PHP source code'/><category term='PHP object'/><category term='mysql start'/><category term='php scripe'/><category term='PHP array function'/><category term='odbc in php'/><category term='php time function'/><category term='read CSV'/><category term='PEAR PHP'/><category term='PHP Session and Cookies'/><category term='How to read XML in php'/><category term='PHP mail code'/><category term='PHP 5 example'/><category term='php print funcation'/><category term='PHP tips'/><category term='ZEND PHP framework'/><category term='PHP.ini setting'/><category term='PHP: Hypertext Preprocessor'/><category term='PHP 5 and PHP 4'/><category term='PHP array'/><category term='php test. php install'/><title type='text'>php source code,php example, coding,PHP5,PHP script,Free PHP example,Free PHP Script,Free</title><subtitle type='html'>php source code,php example, coding,PHP5,PHP script</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>46</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-6994342783060019006</id><published>2010-01-23T04:56:00.000-08:00</published><updated>2010-01-23T05:02:17.293-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='How to get unique value form PHP array?'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP sourcecode'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP array function'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP 5 and PHP 4'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP code example'/><title type='text'>How to get unique value form PHP array?</title><content type='html'>&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;array_unique()&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(PHP 4 &gt;= 4.0.1, PHP 5)&lt;br /&gt;&lt;br /&gt;array_unique — Removes duplicate values from an array&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Description:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p class="para rdfs-comment"&gt;    Takes an input &lt;i&gt;&lt;tt class="parameter"&gt;array&lt;/tt&gt;&lt;/i&gt;  and returns a new array    without duplicate values.   &lt;/p&gt;   &lt;p class="para"&gt;    Note that keys are preserved. &lt;b&gt;array_unique()&lt;/b&gt; sorts    the values treated as string at first, then will keep the first key    encountered for every value, and ignore all following keys. It does not    mean that the key of the first related value from the unsorted    &lt;i&gt;&lt;tt class="parameter"&gt;array&lt;/tt&gt;&lt;/i&gt;  will be kept.&lt;br /&gt;&lt;/p&gt;&lt;p class="para"&gt;Example:&lt;/p&gt;&lt;p class="para"&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="example-contents programlisting"&gt; &lt;div class="phpcode"&gt;&lt;code&gt;&lt;span style="color: rgb(0, 0, 0);"&gt; &lt;span style="color: rgb(0, 0, 187);"&gt;/*&lt;span style="color: rgb(0, 119, 0);"&gt;= array(&lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"a" &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;=&gt; &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"1"&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"2"&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"3" &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;=&gt; &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"1"&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"2"&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;, &lt;/span&gt;&lt;span style="color: rgb(221, 0, 0);"&gt;"3"&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$result &lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;= &lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;array_unique&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$input&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;print_r&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;$result&lt;/span&gt;&lt;span style="color: rgb(0, 119, 0);"&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 187);"&gt;*/&lt;br /&gt;&lt;br /&gt;Result:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;pre&gt;/*Array&lt;br /&gt;(&lt;br /&gt;  [a] =&gt; 1&lt;br /&gt;  [0] =&gt; 2&lt;br /&gt;  [2] =&gt; 3&lt;br /&gt;)*/&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;     &lt;/div&gt;&lt;p class="para"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class="para"&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-6994342783060019006?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/6994342783060019006/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=6994342783060019006' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/6994342783060019006'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/6994342783060019006'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2010/01/how-to-get-unique-value-form-php-array.html' title='How to get unique value form PHP array?'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-1706197508551499347</id><published>2009-07-25T05:31:00.000-07:00</published><updated>2009-07-25T05:36:04.234-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Mysql CSV to php'/><category scheme='http://www.blogger.com/atom/ns#' term='csv import in php'/><category scheme='http://www.blogger.com/atom/ns#' term='CSV and PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Working with CSV files in PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='read CSV'/><title type='text'>Read CSV file through PHP</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Read CSV file through PHP&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="TextIndent2"&gt;&lt;b&gt;/*&lt;/b&gt;&lt;/span&gt;&lt;b&gt;         &lt;/b&gt;&lt;p class="TextIndent1"&gt;&lt;b&gt;&lt;b&gt;$file_handles = fopen("my.csv",            "r");&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;b&gt;         &lt;/b&gt;&lt;p class="TextIndent1"&gt;&lt;b&gt;&lt;b&gt;while (!feof($file_handles) ) {&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;b&gt;         &lt;/b&gt;&lt;p&gt;&lt;b&gt;&lt;b&gt;&lt;span class="TextIndent3"&gt;$line_of_texts = &lt;span style="color: rgb(0, 0, 255);"&gt;fgetcsv(&lt;/span&gt;$file_handles,            1024&lt;span style="color: rgb(0, 0, 255);"&gt;)&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;       &lt;br /&gt;         &lt;span class="TextIndent3"&gt;print $line_of_texts[0] . $line_of_texts[1].            $line_of_texts[2] . "&lt;br /&gt;";&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;b&gt;         &lt;/b&gt;&lt;p class="TextIndent1"&gt;&lt;b&gt;&lt;b&gt;}&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;b&gt;         &lt;/b&gt;&lt;p class="TextIndent1"&gt;&lt;b&gt;&lt;b&gt;fclose($file_handle);&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;b&gt;         &lt;/b&gt;&lt;p class="TextIndent2"&gt;&lt;b&gt;&lt;b&gt;*/&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-1706197508551499347?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/1706197508551499347/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=1706197508551499347' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/1706197508551499347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/1706197508551499347'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2009/07/read-csv-file-through-php.html' title='Read CSV file through PHP'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-4767416980826658398</id><published>2009-07-11T22:15:00.000-07:00</published><updated>2009-07-11T22:22:37.049-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Why use Cookie in PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Cookie in PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='why use session in PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Session in PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='difference between PHP session and cookie'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP Session and Cookies'/><title type='text'>Difference between Cookies and Session (Cookies vs sessions) in PHP</title><content type='html'>Cookies and Session (Cookies vs sessions) in PHP&lt;br /&gt;&lt;br /&gt;Both are use in terms of data storage in programming language...but how ? what is the preferable?, when use session?, when use cookie?, there are some question which arise in the mind at the time of of store data temp. as well as permanent.&lt;br /&gt;&lt;br /&gt;There are differences between the two that will make each favorable in their own circumstance.&lt;br /&gt;&lt;br /&gt;Cookies can be set to a long lifespan, which means that data stored in a cookie can be stored for months if not years. Cookies, having their data stored on the client, work smoothly when you have a cluster of web servers, whereas sessions are stored on the server, meaning if one of your web servers handles the first request, the other web servers in your cluster will not have the stored information.&lt;br /&gt;&lt;br /&gt;Sessions are stored on the server, which means clients do not have access to the information you store about them – this is particularly important if you store shopping baskets or other information you do not want your visitors to be able to edit by hand by hacking their cookies. Session data, being stored on your server, does not need to be transmitted with each page; clients just need to send an ID and the data is loaded from the local file. Finally, sessions can be any size you want because they are held on your server, whereas many web browsers have a limit on how big cookies can be to stop rogue web sites chewing up gigabytes of data with meaningless cookie information.&lt;br /&gt;&lt;br /&gt;So, as you can see, each have their own advantages, but at the end of the day it usually comes down to one choice: do you want your data to work when you visitor comes back the next day? If so, then your only choice is cookies – if you have any particularly sensitive information, your best bet is to store it in a database, then use the cookie to store an ID number to reference the data. If you do not need semi-permanent data, then sessions are generally preferred, as they are a little easier to use, do not require their data to be sent in entirety with each page, and are also cleaned up as soon as your visitor closes their web browser.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-4767416980826658398?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/4767416980826658398/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=4767416980826658398' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/4767416980826658398'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/4767416980826658398'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2009/07/difference-between-cookies-and-session.html' title='Difference between Cookies and Session (Cookies vs sessions) in PHP'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-5530568670918512096</id><published>2009-06-26T23:18:00.000-07:00</published><updated>2009-06-26T23:26:25.831-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WHUPS'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='Mantis'/><category scheme='http://www.blogger.com/atom/ns#' term='phpBugTracker'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP Issue Trackers software list'/><category scheme='http://www.blogger.com/atom/ns#' term='Eventum'/><category scheme='http://www.blogger.com/atom/ns#' term='Bugs the Bug genie'/><title type='text'>PHP Issue Trackers software list</title><content type='html'>Mantis&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    * Web: http://www.mantisbt.org/&lt;br /&gt;    * Requirements: PHP 4.3&lt;br /&gt;    * Supported databases are MySQL with stated support for Postgress, MSSQL, DB2 and Oracle.&lt;br /&gt;    * License: GPL&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Eventum&lt;br /&gt;&lt;br /&gt;    * Web: http://dev.mysql.com/downloads/other/eventum/&lt;br /&gt;    * Requirements: PHP 5.1&lt;br /&gt;    * Supported databases is MySQL.&lt;br /&gt;    * License: GPL&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Bugs the Bug genie&lt;br /&gt;&lt;br /&gt;    * Web: http://www.thebuggenie.com/&lt;br /&gt;    * Requirements: PHP 5.1.&lt;br /&gt;    * Supported databases is MySQL.&lt;br /&gt;    * License: MPL 1.1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;WHUPS&lt;br /&gt;&lt;br /&gt;    * Web: http://www.horde.org/whups/&lt;br /&gt;    * Requirements: Horder framework 3.2+. PHP 4.3+.&lt;br /&gt;    * Most databases are supported.&lt;br /&gt;    * License: BSD license&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;phpBugTracker&lt;br /&gt;&lt;br /&gt;    * Web: http://phpbt.sourceforge.net/&lt;br /&gt;    * Requirements: PHP 4.0.6+.&lt;br /&gt;    * Supported databases are MySQL, PostreSQL and Oracle.&lt;br /&gt;    * License: BSD license&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Other PHP Systems&lt;br /&gt;&lt;br /&gt;    * Flyspray - http://flyspray.org/&lt;br /&gt;    * FireAnt - http://chaozz.nl/software/fireant/&lt;br /&gt;    * zenTrack - http://www.zentrack.net&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-5530568670918512096?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/5530568670918512096/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=5530568670918512096' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/5530568670918512096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/5530568670918512096'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2009/06/php-issue-trackers-software-list.html' title='PHP Issue Trackers software list'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-2082394726864849065</id><published>2009-06-26T23:16:00.000-07:00</published><updated>2009-06-26T23:18:25.963-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php tips and tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP code batter'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP source code'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP performance tips'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP tips'/><title type='text'>PHP performance tips by google</title><content type='html'>1) Upgrade your version of PHP&lt;br /&gt;&lt;br /&gt;2) Use caching&lt;br /&gt;&lt;br /&gt;3) Use output buffering&lt;br /&gt;&lt;br /&gt;4) Don't copy variables for no reason.&lt;br /&gt;&lt;br /&gt;5) Avoid doing SQL queries within a loop&lt;br /&gt;&lt;br /&gt;6) Use single-quotes for long strings.&lt;br /&gt;&lt;br /&gt;7) Use switch/case instead of if/else.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-2082394726864849065?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/2082394726864849065/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=2082394726864849065' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/2082394726864849065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/2082394726864849065'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2009/06/php-performance-tips-by-google.html' title='PHP performance tips by google'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-476465778809045604</id><published>2009-05-23T00:52:00.000-07:00</published><updated>2009-05-23T01:00:36.199-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='How to read XML in php'/><category scheme='http://www.blogger.com/atom/ns#' term='Read integer value from xml and add thos value'/><category scheme='http://www.blogger.com/atom/ns#' term='add xml integer value'/><category scheme='http://www.blogger.com/atom/ns#' term='simple XML object in php'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP5 and XML'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP and xml feature'/><category scheme='http://www.blogger.com/atom/ns#' term='type casting in php'/><title type='text'>How to read integer value from XML in PHP and after read add those value</title><content type='html'>When you read XML in php through simple xml class then at the time of integer value you need to type cast those value in "string", because &lt;br /&gt;when you read through simple xml class object then he return the object(show through the var_dump).&lt;br /&gt;&lt;br /&gt;Ex:&lt;br /&gt;&lt;br /&gt;your XML look like - &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_o5QlKd7EnBg/ShetC8TassI/AAAAAAAAAPM/PdOlj67hiGc/s1600-h/untitled.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 152px; height: 183px;" src="http://3.bp.blogspot.com/_o5QlKd7EnBg/ShetC8TassI/AAAAAAAAAPM/PdOlj67hiGc/s400/untitled.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5338926149329924802" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;now you want to read both ints tag value and add both value.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/* &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$xml-&gt;load('abc.xml');&lt;br /&gt;&lt;br /&gt;foreach($xml-&gt;a[0] as $abTagObj)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;$ints[] = (String)$abTagObj-&gt;ints;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;array_sum($ints); // show the total of all ints tag.&lt;br /&gt;&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;but if you not type cast ints tag value as "string" then when you go for add then show the total as 0.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If still any question then pleases put your comment i will answer you. or any question regarding PHP, javascript, ajax, css, html, mysql put your comment feel free.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-476465778809045604?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/476465778809045604/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=476465778809045604' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/476465778809045604'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/476465778809045604'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2009/05/how-to-read-integer-value-from-xml-in.html' title='How to read integer value from XML in PHP and after read add those value'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_o5QlKd7EnBg/ShetC8TassI/AAAAAAAAAPM/PdOlj67hiGc/s72-c/untitled.bmp' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-6209236741720553349</id><published>2009-04-25T06:14:00.000-07:00</published><updated>2009-04-25T06:48:13.421-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='memcahce help'/><category scheme='http://www.blogger.com/atom/ns#' term='memcache white paper'/><category scheme='http://www.blogger.com/atom/ns#' term='memcache code'/><category scheme='http://www.blogger.com/atom/ns#' term='memcahce function'/><category scheme='http://www.blogger.com/atom/ns#' term='memcahce artical'/><category scheme='http://www.blogger.com/atom/ns#' term='memcache in php'/><title type='text'>Memcache for Code and Performance</title><content type='html'>&lt;h1&gt;"Memcache for Code and Performance "&lt;/h1&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;When website has high traffic then continuos every time fetch record from db and show on the client side is tedious job and we need high performance then we use Memcache.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;What is Memcache?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;"memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load."&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;What is MemcacheDB?&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;It's a distributed key-value storage system designed for persistent. It is NOT a cache solution, but a persistent storage engine for fast and reliable key-value based object storage and retrieval. It conforms to memcache protocol(not completed, see below), so any memcached client can have connectivity with it. MemcacheDB uses Berkeley DB as a storing backend, so lots of features including transaction and replication are supported. &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Before you get too excited keep in mind this is a key-value store. You read and write records by a single key. There aren't multiple indexes and there's no SQL. That's why it can be so fast.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The original client for memcached was written in Perl by the folks at Danga Interactive. The Python client is now maintained by a 3rd party group. The PHP client is available as a PECL package.PHP client is written in C as a PHP extension. The other two are written in Perl and Python. So, all the complex code has to be interpretted. For PHP however, most of the work happens in the engine, not in PHP code. This makes the PHP client far superior in performance to the other two. By default, memcached uses the port 11211.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The system is used by several very large, well-known sites including YouTube, LiveJournal, Slashdot, Wikipedia, SourceForge, ShowClix, GameFAQs, Facebook, Digg, Twitter, Fotolog, BoardGameGeek, NYTimes.com, deviantART, Jamendo, Kayak and in our Mobshare too. &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;PHP provides support for the Memcache functions through a PECL extension. To enable the PHP memcache  extensions, you must build PHP using the --enable-memcache option to configure when building from source.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;A few important things about memcache:&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Memcache is a daemon, meaning it runs as a separate service on your machine. Just like MySQL runs as a separate service. In fact, to use memcache in PHP you have to connect to it, just like MySQL.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Think of memcache as the $_SESSION variable for PHP, but instead of it working on a per-user basis, it runs over the entire application — like MySQL. In fact, you can use memcache as you session handler for PHP.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Memcache to work on windows machine:&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Download memcache  [grab the 'win32 binary' version]&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Install memcache as a service:&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Unzip and copy the binaries to your desired directory (eg. c:\memcached) [you should see one file, memcached.exe] - thanks to Stephen for the heads up on the new version &lt;/li&gt;&lt;br /&gt;&lt;li&gt;If you’re running Vista, right click on memcached.exe and click Properties. Click the Compatibility tab. Near the bottom you’ll see Privilege Level, check “Run this program as an administrator”.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Install the service using the command: c:\memcached\memcached.exe -d install from the command line&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Start the server from the Microsoft Management Console or by running one of the following commands: c:\memcached\memcached.exe -d start, or net start "memcached Server"&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;   &lt;br /&gt;Now that you have memcache installed, you’ll have to tie it in with PHP in order to use it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;1. Check your php extensions directory [should be something like: C:\php\ext] for php_memcache.dll&lt;br /&gt;   If you don’t have any luck finding it, try looking here: pecl4win.php.net/ext.php/php_memcache.dll [or look here for PHP 5.2.*]  &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;2. Now find your php.ini file [default location for XP Pro is C:\WINDOWS\php.ini] and add this line to the extensions list:&lt;br /&gt;&lt;br /&gt;                                &lt;br /&gt;&lt;br /&gt;   extension=php_memcache.dll  &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;3. Restart apache&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt; 4. Run this code to test the installation:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt;&lt;br /&gt;       $memcache = new Memcache; &lt;br /&gt;      $memcache-&gt;connect("localhost",11211); &lt;br /&gt;&lt;br /&gt;        "Server's version: " . $memcache-&gt;getVersion();  &lt;br /&gt;&lt;br /&gt;       $tmp_object = new stdClass; &lt;br /&gt;       $tmp_object-&gt;str_attr = "test";  &lt;br /&gt;       $tmp_object-&gt;int_attr = 123;  &lt;br /&gt;&lt;br /&gt;       $memcache-&gt;set("key",$tmp_object,false,10); &lt;br /&gt;       echo "Store data in the cache (data will expire in 10 seconds)"; &lt;br /&gt;&lt;br /&gt;       echo "Data from the cache:"; &lt;br /&gt;       var_dump($memcache-&gt;get("key"));  &lt;br /&gt;  */ &lt;br /&gt;&lt;br /&gt;&lt;p&gt;If you see anything but errors, you are now using memcache! &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;EDIT&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Memcached, by default, loads with 64mb of memory for it’s use which is low for most applications. To change this to something else, navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\memcached Server in your registry, find the ImagePath entry and change it to look something like this: &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;“C:\memcached\memcached.exe” -d runservice -m 512  &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Now when you start the service via net start “memcached Server”, it will run with 512mb of memory at it’s disposal.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Memcache Functions:&lt;/h4&gt; &lt;p&gt;The memcache object has several methods. With the Memcache::set method we can add an entry to the cache. The method had four arguments:&lt;/p&gt;&lt;ul&gt;&lt;li&gt; a key&lt;/li&gt;&lt;br /&gt; &lt;li&gt; any serializable variable we'd like to cache, in this case it's a string &lt;/li&gt;&lt;br /&gt; &lt;li&gt; a boolean whether we want to use on-the-fly zip compression using libz &lt;/li&gt;&lt;br /&gt; &lt;li&gt; the cache expiry measured in seconds&lt;/li&gt;&lt;br /&gt; &lt;li&gt; Ex: - $memcache-&gt;set("key",$tmp_object,false,10);&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt; Memcache::add — Add an item to the server &lt;/li&gt;&lt;br /&gt; &lt;li&gt; Memcache::addServer — Add a memcached server to connection pool &lt;/li&gt;&lt;br /&gt; &lt;li&gt; Memcache::close — Close memcached server connection &lt;/li&gt;&lt;br /&gt; &lt;li&gt; Memcache::connect — Open memcached server connection &lt;/li&gt;&lt;br /&gt; &lt;li&gt; memcache_debug — Turn debug output on/off&lt;/li&gt;&lt;br /&gt; &lt;li&gt; Memcache::decrement — Decrement item's value&lt;/li&gt;&lt;br /&gt; &lt;li&gt; Memcache::delete — Delete item from the server&lt;/li&gt;&lt;br /&gt; &lt;li&gt; Memcache::flush — Flush all existing items at the server&lt;/li&gt;&lt;br /&gt; &lt;li&gt; Memcache::get — Retrieve item from the server&lt;/li&gt;&lt;br /&gt; &lt;li&gt; Memcache::getExtendedStats — Get statistics from all servers in pool&lt;/li&gt;&lt;br /&gt; &lt;li&gt; Memcache::getServerStatus — Returns server status&lt;/li&gt;&lt;br /&gt; &lt;li&gt; Memcache::getStats — Get statistics of the server&lt;/li&gt;&lt;br /&gt; &lt;li&gt; Memcache::getVersion — Return version of the server&lt;/li&gt;&lt;br /&gt; &lt;li&gt; Memcache::increment — Increment item's value&lt;/li&gt;&lt;br /&gt; &lt;li&gt; Memcache::pconnect — Open memcached server persistent connection&lt;/li&gt;&lt;br /&gt; &lt;li&gt; Memcache::replace — Replace value of the existing item&lt;/li&gt;&lt;br /&gt; &lt;li&gt; Memcache::setCompressThreshold — Enable automatic compression of large values&lt;/li&gt;&lt;br /&gt; &lt;li&gt; Memcache::setServerParams — Changes server parameters and status at runtime&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The data is converted into a string with the serialize() function, so numbers, strings, arrays, and most objects will be stored easily… only resources (file descriptors, database connections, MemCache connections) can not be stored effectively. &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;It is important to keep in mind that if the MemCached server crashes or the process dies, all your cache data will be lost. Always store the actual data in a database server or another persistent storage system. &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Conclusion&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;While the example we created is fairly trivial, it’s easy to see how this technique can be expanded throughout your site. Other queries and other data can be cached with similar benefits. Obviously, MemCached isn’t the only solution to web scaling and data caching, but it can be a pretty useful. Often, as seen in our example, a MemCached solution can be implemented and put in place with minimal code changes, minimal time, and, hopefully, minimum downtime for your users!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-6209236741720553349?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/6209236741720553349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=6209236741720553349' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/6209236741720553349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/6209236741720553349'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2009/04/memcache-for-code-and-performance.html' title='Memcache for Code and Performance'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-7573394091085914692</id><published>2009-04-25T06:11:00.000-07:00</published><updated>2009-04-25T06:40:34.446-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='web devlopment future with PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP 5 and PHP 6'/><category scheme='http://www.blogger.com/atom/ns#' term='about php'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP version 6'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP6 new functionality'/><category scheme='http://www.blogger.com/atom/ns#' term='php6'/><title type='text'>Future of Web Development with Hypertext Preprocessor V6</title><content type='html'>&lt;h1&gt;"Future of Web Development with Hypertext Preprocessor V6"&lt;/h1&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Are you ready for PHP V6? If you were upgrading tomorrow, would your scripts execute just fine or would you have work to do?&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;With the "PHP 6 Developers Meeting Notes" out I finally took a while to go and read through them and figure out what is the best way to move forward and start writing code that will be compatible not only for 4x and 5x but continue on though 6x.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;New PHP V6 features&lt;/h2&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Unicode support:&lt;br /&gt;The primary alteration in PHP6 is support for Unicode(&lt;br /&gt;&lt;br /&gt;"Unicode is a computing industry standard allowing computers to consistently represent and manipulate text expressed in most of the world's writing systems.An encoding scheme that allows for virtually all major world languages to be encoded into a single character set. " )&lt;br /&gt;&lt;br /&gt;Much improved for PHP V6 is support for Unicode strings in many of the core functions. This new feature has a big impact because it will allow PHP to support a broader set of characters for international support. So, if you're a developer or architect using a different language, such as the Java™ programming language, because it has better internationalization (i18n) support than PHP, it'll be time to take another look at PHP when the support improves.&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Namespaces:&lt;br /&gt;Namespaces are a way of avoiding name collisions between functions and classes without using prefixes in naming conventions that make the names of your methods and classes unreadable. So by using namespaces, you can have class names that someone else might use, but now you don't have to worry about running into any problems. &lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt; Move XML extension :&lt;br /&gt;The XMLReader and XMLWriter extensions will move into the core distribution and will be on by default.&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt; Move Fileinfo exntesion :&lt;br /&gt;The extremely useful Fileinfo exntesion will move into the core distribution and enabled by default.&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt; Static Binding :&lt;br /&gt;A new keyword will be created to allow for late static binding - static::static2(), this will perform runtime evaluation of statics.&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt; FastCGI always on  :&lt;br /&gt;The FastCGI code will be cleaned up and always enabled for the CGI SAPI, it will not be able to be disabled. &lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt; 64 bit integers added :&lt;br /&gt;64 bit integers added(int64),  no int32(it is assumed unless you specify int64).&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt; "break" keyword extended :&lt;br /&gt;break keyword will be extended with a static label - so you could do 'break first' and it'll jump to the label first: in your code.&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt; foreach multi-dim arrays :&lt;br /&gt;foreach multi-dim arrays - you'll be able to foreach through array lists, i.e. "foreach( $a as $k =&gt; list($a, $b))".&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt; {} vs [] :&lt;br /&gt;You can currently use both {} and [] to access string indexes. But the {} notation will raise an E_STRICT in PHP5.1 and will be gone totally in PHP6. Also the [] version will gain substr and array_slice functionality directly - so you could do "[2,]" to access characters 2 to the end, etc.&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt; E_STRICT merges into E_ALL :&lt;br /&gt;This is quite a serious one! E_STRICT level messages will be added to E_ALL by default. This shows a marked move by the PHP team to educate developers on 'best practises' and displaying language-level warnings.&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;dl() only enable it when a SAPI(Server API) layer registers it explicitly&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Make "var" an alias for "public" and remove the warning for it&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Things removed from PHP V6&lt;/h2&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;In addition to having new features, PHP V6 will not have some other functions and features that have been in previous versions. Most of these things, such as register_globals and safe_mode, are widely considered "broken" in current PHP, as they may expose security risks.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Features that will be removed from the PHP version include: &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Magic Quotes to go :&lt;br /&gt;The magic quotes feature of PHP will be going, and as with register globals it's going to raise an E_CORE_ERROR if the setting is found anywhere. This will affect magic_quotes, magic_quotes_sybase and magic_quotes_gpc.&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt; Register Globals to go :&lt;br /&gt;It will no longer be an ini file setting, and if found it will raise an E_CORE_ERROR,finally break all PHP3 era scripts with no recourse at all but to re-code it.&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt; Register Long Arrays to go :&lt;br /&gt;Remember the HTTP_*_VARS globals from yesteryear? Well if you're not already using $_GET, $_POST, etc - start doing so now, because the option to enable long arrays is going (and will throw an E_CORE_ERROR).&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt; Safe Mode to go :&lt;br /&gt;This may please developers who have web hosts that insist upon safe mode! But it will now go totally, again raising an E_CORE_ERROR if found. The reason is that apparently they felt it gave the 'wrong signal', implying that it made PHP secure, when infact it didn't at all. open_basedir will (thankfully) be kept. &lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;  Short php tags :&lt;br /&gt;Microsoft Active Server Pages (ASP)-style tags — the shorter version of the PHP tags — are no longer supported&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt; ereg extension :&lt;br /&gt;The ereg extension, which supports Portable Operating System Interface (POSIX) regular expressions, is being removed from core PHP support. &lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt; Return by Reference will error :&lt;br /&gt;Don't initiate objects with the reference operator(E_STRICT error) &lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt; Stop Freetype 1 and GD 1 support&lt;br /&gt;Stop Freetype 1(TrueType rendering engine library) and GD 1(dynamic creation of images library) support &lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Some of the features mentioned here have also been ported to PHP V5.3,  so that when you move to V6 of PHP, it'll be less of a jump.&lt;br /&gt;The following list of features have been back-ported to V5.3,    such as - " Namespaces"&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Conclusions&lt;/h2&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;That is about all  If you are still using php4 to php5 compatibility, you might want to think about removing PHP5 in the coming months since there is already 6.0 dev versions out. Yes I know you guys do not like to give up your old ways(adoption of PHP6 even slower than that of PHP5 becuase of no backward compatibility) but it is time to move on.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Now PHP is becoming closer to enterprise apps. PHP6 is not a software revolution, but rather a standards evolution, which is sometimes more important in enterprise applications.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-7573394091085914692?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/7573394091085914692/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=7573394091085914692' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/7573394091085914692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/7573394091085914692'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2009/04/future-of-web-development-with.html' title='Future of Web Development with Hypertext Preprocessor V6'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-712681815880445558</id><published>2009-03-21T03:58:00.000-07:00</published><updated>2009-03-21T03:59:36.629-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP question'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP multiple answer question'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP classes'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP oops'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP 5 classes question'/><title type='text'>PHP classes question</title><content type='html'>1) class myclass{&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if you run this code then what you get ?&lt;br /&gt;&lt;br /&gt;Guesss ... answer in last&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2) class parent{&lt;br /&gt;&lt;br /&gt;    $a = 2;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;$obj_parent = parent();&lt;br /&gt;&lt;br /&gt;if you run this code then what you get ?&lt;br /&gt;&lt;br /&gt;Guesss ... answer in last&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Answer :&lt;br /&gt;&lt;br /&gt;1) Fatel error&lt;br /&gt;2) Parent word is reserve so again Fatel error.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-712681815880445558?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/712681815880445558/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=712681815880445558' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/712681815880445558'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/712681815880445558'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2009/03/php-classes-question.html' title='PHP classes question'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-7017163943209429205</id><published>2009-01-11T01:49:00.000-08:00</published><updated>2009-01-11T01:51:10.363-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Yahoo UI Library'/><category scheme='http://www.blogger.com/atom/ns#' term='scriptaculo'/><category scheme='http://www.blogger.com/atom/ns#' term='Mochikit'/><category scheme='http://www.blogger.com/atom/ns#' term='MooTools'/><category scheme='http://www.blogger.com/atom/ns#' term='dojo'/><category scheme='http://www.blogger.com/atom/ns#' term='rico'/><category scheme='http://www.blogger.com/atom/ns#' term='Prototype JavaScript Framework'/><title type='text'>Famous javascript Library list and javascript framework</title><content type='html'>Famous javascript Library list -&lt;br /&gt;&lt;br /&gt;   * Ample SDK&lt;br /&gt;   * Backbase&lt;br /&gt;   * Clean AJAX&lt;br /&gt;   * Dojo Toolkit&lt;br /&gt;   * Echo&lt;br /&gt;   * Ext&lt;br /&gt;   * Himle&lt;br /&gt;   * JQuery&lt;br /&gt;   * Joose (framework)&lt;br /&gt;   * Microsoft AJAX Library&lt;br /&gt;   * midori&lt;br /&gt;   * Mochikit&lt;br /&gt;   * MooTools&lt;br /&gt;   * My Library&lt;br /&gt;   * Morfik&lt;br /&gt;   * OpenLink AJAX Toolkit&lt;br /&gt;   * Prototype JavaScript Framework&lt;br /&gt;   * qooxdoo&lt;br /&gt;   * Rialto Toolkit&lt;br /&gt;   * Rico&lt;br /&gt;   * Script.aculo.us&lt;br /&gt;   * SmartClient&lt;br /&gt;   * Spry framework&lt;br /&gt;   * Yahoo! UI Library&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-7017163943209429205?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/7017163943209429205/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=7017163943209429205' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/7017163943209429205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/7017163943209429205'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2009/01/famous-javascript-library-list-and.html' title='Famous javascript Library list and javascript framework'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-5636453937737725056</id><published>2009-01-11T01:46:00.000-08:00</published><updated>2009-01-11T01:48:59.876-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='symfony php framework'/><category scheme='http://www.blogger.com/atom/ns#' term='cake PHP frame work'/><category scheme='http://www.blogger.com/atom/ns#' term='Object Model in PHP 5'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP 4'/><category scheme='http://www.blogger.com/atom/ns#' term='mozavi PHP framework'/><category scheme='http://www.blogger.com/atom/ns#' term='ZEND PHP framework'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP MVC Framework list'/><category scheme='http://www.blogger.com/atom/ns#' term='php framework'/><title type='text'>PHP MVC Framework list</title><content type='html'>10- Ambivalence: A Java-Maverick Port&lt;br /&gt;9- WACT: Web Application Component Toolkit&lt;br /&gt;8- Achievo: A good RAD framework&lt;br /&gt;7- Phrame: A Java-Struts port&lt;br /&gt;6- Studs: A Java-Struts port to PHP&lt;br /&gt;5- Prado: The winner of Zend coding contest&lt;br /&gt;4- PHPOnTrax: a Rails port - PHP5 Only&lt;br /&gt;3- CakePHP: Inspired by Rails PHP4/5&lt;br /&gt;2- Mojavi: The first MVC framework I fell in love with&lt;br /&gt;&lt;br /&gt;and the winner is:&lt;br /&gt;&lt;br /&gt;1- Symfony: Based on Mojavi and inspired by Rails&lt;br /&gt;&lt;br /&gt;This list is based on my personal tests and use. I have tested and played with many others, but I think these are the best frameworks out there.&lt;br /&gt;- The first framework I fell in love with was Mojavi because of its elegant way to implement the MVC model.&lt;br /&gt;- Symfony corrected some problems in Mojavi and improved it by taking the good sides of RubyOnRails and Propel.&lt;br /&gt;- CakePHP is very promising, the only problem - really, I don't know if it is a problem - is: the development process is very slow.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-5636453937737725056?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/5636453937737725056/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=5636453937737725056' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/5636453937737725056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/5636453937737725056'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2009/01/php-mvc-framework-list.html' title='PHP MVC Framework list'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-998505961803718041</id><published>2008-09-27T05:40:00.000-07:00</published><updated>2008-09-27T05:41:19.670-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='print in javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='php print funcation'/><category scheme='http://www.blogger.com/atom/ns#' term='selected area prinout through javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='print through javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='print'/><category scheme='http://www.blogger.com/atom/ns#' term='print only select are'/><title type='text'>Only selected are print through javascript</title><content type='html'>Hi friends&lt;br /&gt;&lt;br /&gt;If you want to take only selected area print out not whole web page then use the following guidelines and enjoy :- &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Take a print are in a single div and  any event like onclick , onblur what ever you eant call the below javascript function - &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/*   function fnPrintArea()&lt;br /&gt;    {&lt;br /&gt;        var DocumentContainer = document.getElementById('print_table_div_id');&lt;br /&gt;        var WindowObject = window.open('', "printarea", &lt;br /&gt;                              "width=850,height=850,top=200,left=250,toolbars=no,scrollbars=yes,status=no,resizable=no");&lt;br /&gt;        WindowObject.document.writeln(DocumentContainer.innerHTML);&lt;br /&gt;        WindowObject.document.close();&lt;br /&gt;        WindowObject.focus();&lt;br /&gt;        WindowObject.print();&lt;br /&gt;        WindowObject.close();&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;*/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-998505961803718041?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/998505961803718041/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=998505961803718041' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/998505961803718041'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/998505961803718041'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2008/09/only-selected-are-print-through.html' title='Only selected are print through javascript'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-8987154034837477624</id><published>2008-09-27T05:34:00.000-07:00</published><updated>2008-09-27T05:35:51.819-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Multiple date selection javascript calendar'/><category scheme='http://www.blogger.com/atom/ns#' term='javascript multiple date seclection calender'/><category scheme='http://www.blogger.com/atom/ns#' term='javascript calender'/><title type='text'>Multiple date selection javascript calendar</title><content type='html'>Hi all There is a link please vistite for multiple date selection calendar in javascript&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;http://www.dynarch.com/projects/calendar/&lt;br /&gt;&lt;br /&gt;If you face some issue(not sure may be , because i am facing when i have implement this) on there like &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;calender not show in IE7 properly ?&lt;br /&gt;&lt;br /&gt;or &lt;br /&gt;&lt;br /&gt;you want to disabler older date or range of dates ?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Or &lt;br /&gt;&lt;br /&gt;Single click problem ?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;then use the same site forum for all your question passionaly and still you are face problem then fill free comment here i will answer all your question as soon as possible.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-8987154034837477624?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/8987154034837477624/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=8987154034837477624' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/8987154034837477624'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/8987154034837477624'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2008/09/multiple-date-selection-javascript.html' title='Multiple date selection javascript calendar'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-69804246639920444</id><published>2008-09-27T05:27:00.000-07:00</published><updated>2008-09-27T05:28:17.107-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='http and https same session'/><category scheme='http://www.blogger.com/atom/ns#' term='how to use same session in http and https'/><category scheme='http://www.blogger.com/atom/ns#' term='same sessionid problem in http and https'/><title type='text'>how Same session Id in http:// and https://</title><content type='html'>If you have the condition like that you want same session id in the http and HTTPS prtocal the simple one line solution:-&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Just make it one .htaccess file and upload in your server top root directory&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;and write  the .htaccess like this - &lt;br /&gt;&lt;br /&gt;"&lt;br /&gt;&lt;br /&gt;php_value session.cookie_domain ".domain_name.com" &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;so now save the .htaccess file and upload on the server and check the cookie of your web browser , when you redirect from http to https or vicecersa your session id remain same.&lt;br /&gt;&lt;br /&gt;Or any question regarding this feel free comment here.....&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-69804246639920444?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/69804246639920444/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=69804246639920444' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/69804246639920444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/69804246639920444'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2008/09/how-same-session-id-in-http-and-https.html' title='how Same session Id in http:// and https://'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-8886572799722827467</id><published>2008-09-09T08:46:00.000-07:00</published><updated>2008-09-09T08:48:35.191-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php camp'/><category scheme='http://www.blogger.com/atom/ns#' term='php camp 2008'/><category scheme='http://www.blogger.com/atom/ns#' term='php camp at pune'/><category scheme='http://www.blogger.com/atom/ns#' term='phpcamppune08'/><category scheme='http://www.blogger.com/atom/ns#' term='pune'/><title type='text'>phpcamppune08 - PHP camp at pune 2008</title><content type='html'>&lt;a title="phpcamp pune 2008: A gathering of php enthusiast" href="http://phpcamp.org/"&gt;&lt;img src="http://phpcamp.org/media/attend/php-programer.jpg" alt="phpcamp pune 2008: A gathering of php enthusiast" border="0" /&gt;&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;PHPCamp is a ‘ad-hoc gathering’ for PHP community. It similar to barcamp , but more focused towards PHP based web application development. This means that anyone can come to PHPCamp and participate.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Event Details&lt;br /&gt;&lt;br /&gt;Date: 20th September 2008 (saturday) .&lt;br /&gt;&lt;br /&gt;Time: 10:00am to 6:00pm (Whole day event) .&lt;br /&gt;&lt;br /&gt;To register for PHPCamp register yourself at PHPCamp.org&lt;br /&gt;&lt;br /&gt;To know more join phpcamp on google groups.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-8886572799722827467?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/8886572799722827467/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=8886572799722827467' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/8886572799722827467'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/8886572799722827467'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2008/09/phpcamppune08-php-camp-at-pune-2008.html' title='phpcamppune08 - PHP camp at pune 2008'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-6358936804790045761</id><published>2008-08-30T23:34:00.000-07:00</published><updated>2008-08-30T23:40:23.263-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php smarty template engine'/><category scheme='http://www.blogger.com/atom/ns#' term='smarty installation'/><category scheme='http://www.blogger.com/atom/ns#' term='php smarty'/><category scheme='http://www.blogger.com/atom/ns#' term='smarty'/><title type='text'>PHP with smarty template engine installation</title><content type='html'>PHP with smarty installation is so easy....&lt;br /&gt;&lt;br /&gt;just download the stable version of smarty package and unzip the folder and rename folder name "smarty"&lt;br /&gt;&lt;br /&gt;and now you create four directory in your application folder&lt;br /&gt;&lt;br /&gt;1) config&lt;br /&gt;2) templates_c&lt;br /&gt;3) templates&lt;br /&gt;4) cache&lt;br /&gt;&lt;br /&gt;and just create one php file and here just specify the pathe of smaty.connect.php file and all four directory path&lt;br /&gt;&lt;br /&gt;like the pls see example below&lt;br /&gt;&lt;br /&gt;// put full path to Smarty.class.php&lt;br /&gt;require('/usr/local/lib/php/Smarty/Smarty.class.php');&lt;br /&gt;$smarty = new Smarty();&lt;br /&gt;&lt;br /&gt;$smarty-&gt;template_dir = '/web/www.domain.com/smarty/templates';&lt;br /&gt;$smarty-&gt;compile_dir = '/web/www.domain.com/smarty/templates_c';&lt;br /&gt;$smarty-&gt;cache_dir = '/web/www.domain.com/smarty/cache';&lt;br /&gt;$smarty-&gt;config_dir = '/web/www.domain.com/smarty/configs';&lt;br /&gt;&lt;br /&gt;$smarty-&gt;assign('name', 'MANISH');&lt;br /&gt;$smarty-&gt;display('index.tpl');&lt;br /&gt;&lt;br /&gt;now include above php file anywhere and use the smartyy template magic.&lt;br /&gt;&lt;br /&gt;any question then pls cooment here....i will give u the answer...thanks&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-6358936804790045761?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/6358936804790045761/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=6358936804790045761' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/6358936804790045761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/6358936804790045761'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2008/08/php-with-smarty-template-engine.html' title='PHP with smarty template engine installation'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-6747867822884696462</id><published>2008-08-30T23:26:00.000-07:00</published><updated>2008-08-30T23:33:17.390-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP 5'/><category scheme='http://www.blogger.com/atom/ns#' term='Connect  Mysql database in php'/><category scheme='http://www.blogger.com/atom/ns#' term='php manual'/><category scheme='http://www.blogger.com/atom/ns#' term='php mysql connection'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql_connect() php function'/><title type='text'>Connect  Mysql database in php</title><content type='html'>PHP main target is to make possible build dynamic web sites.&lt;br /&gt;This possibility is available by using some database system to store information and manipulate them, when system and user needs it.&lt;br /&gt;On PHP a large number of database systems come by default embbed as libraries.&lt;br /&gt;On this article we will learn how to use one of the most used on data handling - MySQL.&lt;br /&gt;MySQL can be installed easly, by downloading EasyPHP.&lt;br /&gt;This application installs Mysql on a web based version, it means that you can manage all database processes on your browser.&lt;br /&gt;It allows to create databases, and tables, edit fields , backup tables system database and a large option of new features.&lt;br /&gt;To access the interface that allows you to create database click with the right button of mouse on tray icon "Administration".&lt;br /&gt;Right next click&lt;br /&gt;&lt;br /&gt;MySQL MANAGER&lt;br /&gt;&lt;br /&gt;it will open the window where you must the name of your database and next it will ask for your table name.&lt;br /&gt;&lt;br /&gt;Check how many fields you need on your table and build it.&lt;br /&gt;&lt;br /&gt;Now the database and table are created let´s configure the conection to the mysql server using PHP.&lt;br /&gt;Remember that server is configured with an default username and password.&lt;br /&gt;You can make secure by changing it at your choice.&lt;br /&gt;&lt;br /&gt;Follows the PHP code generated to build the table&lt;br /&gt;&lt;br /&gt;CREATE TABLE `admin` (&lt;br /&gt;  `id` int(11) NOT NULL auto_increment,&lt;br /&gt;  `username` varchar(40) NOT NULL,&lt;br /&gt;  `password` varchar(16) NOT NULL,&lt;br /&gt;  PRIMARY KEY  (`id`)&lt;br /&gt;) ENGINE=MyISAM&lt;br /&gt;&lt;br /&gt;and now time to connect with php this table.....&lt;br /&gt;&lt;br /&gt;&lt;?php&lt;br /&gt;$con = mysql_connect("localhost","database usernam","password");&lt;br /&gt;if (!$con)&lt;br /&gt;  {&lt;br /&gt;  die('Could not connect: ' . mysql_error());&lt;br /&gt;  }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-6747867822884696462?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/6747867822884696462/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=6747867822884696462' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/6747867822884696462'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/6747867822884696462'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2008/08/connect-mysql-database-in-php.html' title='Connect  Mysql database in php'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-3633076749526653752</id><published>2008-07-26T00:38:00.000-07:00</published><updated>2008-07-26T00:39:21.342-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP5 new feature'/><category scheme='http://www.blogger.com/atom/ns#' term='difference between PHP4 and PHP5'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP5 xml'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP4 xml'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP and xml feature'/><title type='text'>Major Changes betwwen PHP4 and PHP5 XML support</title><content type='html'>Two extensions have changed.The XSLT extension present in PHP4 is not the XSL extension in PHP 5.Additionally, the XML-DOM extension in PHP 4 is not the DOM extensionis PHP 5. What this means is that the syntax of the functions in theseextensions have changed but the purpose of the extensions has notchanged.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-3633076749526653752?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/3633076749526653752/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=3633076749526653752' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/3633076749526653752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/3633076749526653752'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2008/07/major-changes-betwwen-php4-and-php5-xml.html' title='Major Changes betwwen PHP4 and PHP5 XML support'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-3657334235949889326</id><published>2008-07-26T00:36:00.000-07:00</published><updated>2008-07-26T00:38:08.943-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Object Model in PHP 5'/><category scheme='http://www.blogger.com/atom/ns#' term='object model'/><category scheme='http://www.blogger.com/atom/ns#' term='new object model with php'/><category scheme='http://www.blogger.com/atom/ns#' term='php object model'/><title type='text'>PHP 5 Object Model</title><content type='html'>PHP 5 there is a new Object Model. PHP's handling of objects has been completely rewritten, allowing for better performance and more features. In previous versions of PHP, objects were handled like primitive types (for instance integers and strings). The drawback of this method was that semantically the whole object was copied when a variable was assigned, or passed as a parameter to a method. In the new approach, objects are referenced by handle, and not by value (one can think of a handle as an object's identifier).Many PHP programmers aren't even aware of the copying quirks of the old object model and, therefore, the majority of PHP applications will work out of the box, or with very few modificationsThe new Object Model is documented at the http://www.php.net/manual/en/language.oop5.php&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-3657334235949889326?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/3657334235949889326/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=3657334235949889326' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/3657334235949889326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/3657334235949889326'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2008/07/php-5-object-model.html' title='PHP 5 Object Model'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-6571448484681641475</id><published>2008-07-26T00:35:00.000-07:00</published><updated>2008-07-26T00:36:23.160-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP Types of arrays'/><category scheme='http://www.blogger.com/atom/ns#' term='Types of arrays in PHP 5'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP 5 Types of arrays'/><title type='text'>PHP 5 array types</title><content type='html'>Types of arrays:&lt;br /&gt;&lt;br /&gt;Numerically indexed arrays&lt;br /&gt;Associative arrays&lt;br /&gt;Multidimensional arrays&lt;br /&gt;Sorting arrays&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-6571448484681641475?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/6571448484681641475/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=6571448484681641475' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/6571448484681641475'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/6571448484681641475'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2008/07/php-5-array-types.html' title='PHP 5 array types'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-481829594530227327</id><published>2008-07-26T00:33:00.000-07:00</published><updated>2008-07-26T00:35:14.215-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript code in php code'/><category scheme='http://www.blogger.com/atom/ns#' term='javscript and PHP combination'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP and javascript'/><title type='text'>how write javascript code into PHP code ?</title><content type='html'>You just echo / print the javascript like you would do with html, like:&lt;br /&gt;&lt;br /&gt;echo and then start script tag here&lt;br /&gt;&lt;br /&gt;write the code echo alert();&lt;br /&gt;&lt;br /&gt;echo and script tag end here&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-481829594530227327?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/481829594530227327/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=481829594530227327' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/481829594530227327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/481829594530227327'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2008/07/how-write-javascript-code-into-php-code.html' title='how write javascript code into PHP code ?'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-5551497186768308544</id><published>2008-07-26T00:31:00.000-07:00</published><updated>2008-07-26T00:33:14.571-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP 5'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP 4'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP MEANing'/><title type='text'>PHP stand for?</title><content type='html'>PHP is short for "PHP: Hypertext Preprocessor".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-5551497186768308544?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/5551497186768308544/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=5551497186768308544' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/5551497186768308544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/5551497186768308544'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2008/07/php-stand-for.html' title='PHP stand for?'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-5991542144013482377</id><published>2008-07-25T23:48:00.000-07:00</published><updated>2008-07-25T23:51:05.672-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP.ini configuration'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP.ini setting'/><title type='text'>include path settings , without access to php.ini</title><content type='html'>If you are hosting on a Linux server you may (Depending on your host) be able to use .htaccess this file must be in the root of the web directory.The format is along the lines of (For PHP4 Module):-php_value include_path .:/path/that/you/want/to/usephp_value magic_quotes_gpc "off"php_value track_errors "on"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-5991542144013482377?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/5991542144013482377/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=5991542144013482377' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/5991542144013482377'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/5991542144013482377'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2008/07/include-path-settings-without-access-to.html' title='include path settings , without access to php.ini'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-4554876860707450823</id><published>2008-07-25T23:45:00.000-07:00</published><updated>2008-07-25T23:48:33.233-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pear PDo'/><category scheme='http://www.blogger.com/atom/ns#' term='PEAR PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP Pear'/><category scheme='http://www.blogger.com/atom/ns#' term='Pera packages'/><title type='text'>Pear Package PHP Description</title><content type='html'>What is PEAR?&lt;br /&gt;how install the PEAR?&lt;br /&gt;Quoted from PEAR's homepage at http://pear.php.net/"PEAR is a framework and distribution system for reusable PHP components."So what can PEAR be used for?In short it's will be a full framework for building php applications, meaning there will be classes for most purposes you can use instead of writing your own code. If you are a current/former perl programmer PEAR has simalaraties to perl's CPAN framework. For more information about PEAR and how you get started look at the following articles:&lt;br /&gt;http://www.onlamp.com/pub/a/php/2001/05/24/pear.html&lt;br /&gt;&lt;a href="http://www.onlamp.com/pub/a/php/2001/07/19/pear.html"&gt;http://www.onlamp.com/pub/a/php/2001/07/19/pear.html&lt;/a&gt;&lt;br /&gt;The official PEAR homepage is found here&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-4554876860707450823?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/4554876860707450823/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=4554876860707450823' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/4554876860707450823'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/4554876860707450823'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2008/07/pear-package-php-description.html' title='Pear Package PHP Description'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-7395592498414160659</id><published>2008-06-07T04:51:00.000-07:00</published><updated>2008-06-07T04:53:21.492-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP object'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP 4 source code'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP 5 source code'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP array'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP type cast'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP array in PHP object'/><title type='text'>how to convert PHP array in to PHP object ?</title><content type='html'>$a = $array("a"=&gt; 1, "b"=&gt; 2);&lt;br /&gt;&lt;br /&gt;now type cast array in to object...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$arrayObj = (object)$a;&lt;br /&gt;&lt;br /&gt;now u able to use like object and method.....&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;echo $arrayObj-&gt;a; // output 1&lt;br /&gt;echo $arrayObj-&gt;b;// output 2&lt;br /&gt;&lt;br /&gt;but only work with key as a string.....not work with indexed array.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-7395592498414160659?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/7395592498414160659/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=7395592498414160659' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/7395592498414160659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/7395592498414160659'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2008/06/how-to-convert-php-array-in-to-php.html' title='how to convert PHP array in to PHP object ?'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-3916157348408652943</id><published>2008-06-07T04:50:00.000-07:00</published><updated>2008-06-07T04:51:40.325-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php time function'/><category scheme='http://www.blogger.com/atom/ns#' term='date function php'/><category scheme='http://www.blogger.com/atom/ns#' term='php current date'/><title type='text'>How to get current date..in PHP..?????</title><content type='html'>just simple &lt;br /&gt;&lt;br /&gt;use a inbuilt PHP date() function and pass the time() function as a parameter....&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;like...&lt;br /&gt;&lt;br /&gt;echo date("y/m/d",time());&lt;br /&gt;&lt;br /&gt;first parameter is date format.&lt;br /&gt;&lt;br /&gt;and second is PHP inbuilt time() function.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-3916157348408652943?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/3916157348408652943/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=3916157348408652943' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/3916157348408652943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/3916157348408652943'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2008/06/how-to-get-current-datein-php.html' title='How to get current date..in PHP..?????'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-2243934608980407524</id><published>2008-06-07T04:49:00.000-07:00</published><updated>2008-06-07T04:50:42.648-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='output controll function in php 5'/><category scheme='http://www.blogger.com/atom/ns#' term='output controll function'/><title type='text'>List of Output Control Functions in PHP 5</title><content type='html'>o flush — Flush the output buffer&lt;br /&gt;          o ob_clean — Clean (erase) the output buffer&lt;br /&gt;          o ob_end_clean — Clean (erase) the output buffer and turn off output buffering&lt;br /&gt;          o ob_end_flush — Flush (send) the output buffer and turn off output buffering&lt;br /&gt;          o ob_flush — Flush (send) the output buffer&lt;br /&gt;          o ob_get_clean — Get current buffer contents and delete current output buffer&lt;br /&gt;          o ob_get_contents — Return the contents of the output buffer&lt;br /&gt;          o ob_get_flush — Flush the output buffer, return it as a string and turn off output &lt;br /&gt;&lt;br /&gt;buffering&lt;br /&gt;          o ob_get_length — Return the length of the output buffer&lt;br /&gt;          o ob_get_level — Return the nesting level of the output buffering mechanism&lt;br /&gt;          o ob_get_status — Get status of output buffers&lt;br /&gt;          o ob_gzhandler — ob_start callback function to gzip output buffer&lt;br /&gt;          o ob_implicit_flush — Turn implicit flush on/off&lt;br /&gt;          o ob_list_handlers — List all output handlers in use&lt;br /&gt;          o ob_start — Turn on output buffering&lt;br /&gt;          o output_add_rewrite_var — Add URL rewriter values&lt;br /&gt;          o output_reset_rewrite_vars — Reset URL rewriter values&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-2243934608980407524?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/2243934608980407524/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=2243934608980407524' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/2243934608980407524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/2243934608980407524'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2008/06/list-of-output-control-functions-in-php.html' title='List of Output Control Functions in PHP 5'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-5852239474258943690</id><published>2008-06-07T04:48:00.000-07:00</published><updated>2008-06-07T04:49:48.118-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP global array'/><category scheme='http://www.blogger.com/atom/ns#' term='php predifined variable'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP super global array'/><title type='text'>List of Predefined variables in PHP 5 and PHP 4</title><content type='html'>PHP5 and PHP4 provides a large number of predefined variables to all scripts. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    * Superglobals — Superglobals are built-in variables that are always available in all scopes&lt;br /&gt;    * $GLOBALS — References all variables available in global scope&lt;br /&gt;    * $_SERVER — Server and execution environment information&lt;br /&gt;    * $_GET — HTTP GET variables&lt;br /&gt;    * $_POST — HTTP POST variables&lt;br /&gt;    * $_FILES — HTTP File Upload variables&lt;br /&gt;    * $_REQUEST — HTTP Request variables&lt;br /&gt;    * $_SESSION — Session variables&lt;br /&gt;    * $_ENV — Environment variables&lt;br /&gt;    * $_COOKIE — HTTP Cookies&lt;br /&gt;    * $php_errormsg — The previous error message&lt;br /&gt;    * $HTTP_RAW_POST_DATA — Raw POST data&lt;br /&gt;    * $http_response_header — HTTP response headers&lt;br /&gt;    * $argc — The number of arguments passed to script&lt;br /&gt;    * $argv — Array of arguments passed to script&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-5852239474258943690?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/5852239474258943690/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=5852239474258943690' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/5852239474258943690'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/5852239474258943690'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2008/06/list-of-predefined-variables-in-php-5.html' title='List of Predefined variables in PHP 5 and PHP 4'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-1766420107103427621</id><published>2008-06-07T04:45:00.000-07:00</published><updated>2008-06-07T04:48:24.881-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP5 encapsulation magic'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP 5 object oriented'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP 5 example'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP 5 source code'/><title type='text'>PHP5 Encapsulation Surprises to you ..........</title><content type='html'>In PHP5, unlike Java or C++, $this has to be explicitly used to refer to variables within a &lt;br /&gt;&lt;br /&gt;class.&lt;br /&gt;&lt;br /&gt;The value of $this is determined by the context in which it is called. In certain situations &lt;br /&gt;&lt;br /&gt;$this may actually refer to the invoking class rather then the current class. This breaks object &lt;br /&gt;&lt;br /&gt;encapsulation.&lt;br /&gt;&lt;br /&gt;$this pseudo-variable is not defined if the method in which it is located is called statically &lt;br /&gt;&lt;br /&gt;with an exception as noted below.&lt;br /&gt;&lt;br /&gt;$this is defined if a method is called statically from within another object. In this case, the &lt;br /&gt;&lt;br /&gt;value of $this is that of the calling object.&lt;br /&gt;&lt;br /&gt;The following example from PHP manual will clarify this:&lt;br /&gt;&lt;br /&gt;    foo();&lt;br /&gt;    A::foo();&lt;br /&gt;    $b = new B();&lt;br /&gt;    $b-&gt;bar();&lt;br /&gt;    B::bar();&lt;br /&gt;    ?&gt;&lt;br /&gt;&lt;br /&gt;Output:&lt;br /&gt;&lt;br /&gt;    $this is defined (a)&lt;br /&gt;    $this is not defined.&lt;br /&gt;    $this is defined (b)&lt;br /&gt;    $this is not defined.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-1766420107103427621?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/1766420107103427621/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=1766420107103427621' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/1766420107103427621'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/1766420107103427621'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2008/06/php5-encapsulation-surprises-to-you.html' title='PHP5 Encapsulation Surprises to you ..........'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-6918969211498368768</id><published>2008-02-28T07:18:00.000-08:00</published><updated>2008-02-28T07:19:28.743-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP mail code'/><category scheme='http://www.blogger.com/atom/ns#' term='PHp mail help'/><category scheme='http://www.blogger.com/atom/ns#' term='How do I send mails with PHP?'/><category scheme='http://www.blogger.com/atom/ns#' term='php mail script'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP mail manual'/><title type='text'>How do I send mails with PHP?</title><content type='html'>PHP has a function called mail for that purpose, example (from php.net):&lt;br /&gt;&lt;br /&gt;mail("nobody@example.com", "the subject", $message,&lt;br /&gt;"From: webmaster@$SERVER_NAME\r\n"&lt;br /&gt;."Reply-To: webmaster@$SERVER_NAME\r\n"&lt;br /&gt;."X-Mailer: PHP/" . phpversion());&lt;br /&gt;&lt;br /&gt;For more information about the function look here:&lt;br /&gt;http://www.php.net/manual/en/ref.mail.php&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-6918969211498368768?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/6918969211498368768/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=6918969211498368768' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/6918969211498368768'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/6918969211498368768'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2008/02/how-do-i-send-mails-with-php.html' title='How do I send mails with PHP?'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-4875828447254597271</id><published>2008-02-28T07:17:00.000-08:00</published><updated>2008-02-28T07:18:43.989-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql command hosting'/><category scheme='http://www.blogger.com/atom/ns#' term='Mysql hosting'/><category scheme='http://www.blogger.com/atom/ns#' term='I have lost my MySQL root password'/><category scheme='http://www.blogger.com/atom/ns#' term='how can I get in?'/><title type='text'>I have lost my MySQL root password, how can I get in?</title><content type='html'>If you have forgotten the root user password for MySQL, you can restore it with the following procedure:&lt;br /&gt;&lt;br /&gt;Take down the mysqld server by sending a kill (not kill -9) to the mysqld server.&lt;br /&gt;&lt;br /&gt;The pid is stored in a .pid file, which is normally in the MySQL database directory:&lt;br /&gt;kill `cat /mysql-data-directory/hostname.pid`&lt;br /&gt;&lt;br /&gt;You must be either the Unix root user or the same user the server runs as to do this.&lt;br /&gt;&lt;br /&gt;Restart mysqld with the --skip-grant-tables option.&lt;br /&gt;&lt;br /&gt;Connect to the mysqld server with mysql -h hostname mysql and change the password with a GRANT command.&lt;br /&gt;&lt;br /&gt;See section 7.35 GRANT and REVOKE Syntax http://www.mysql.com/doc/G/R/GRANT.html&lt;br /&gt;&lt;br /&gt;You can also do this with mysqladmin -h hostname -u user password 'new password'&lt;br /&gt;&lt;br /&gt;Load the privilege tables with: mysqladmin -h hostname flush-privileges or with the SQL command FLUSH PRIVILEGES.&lt;br /&gt;&lt;br /&gt;Note that after you started mysqld with --skip-grant-tables, any usage of GRANT commands will give you an Unknown command error until you have executed FLUSH PRIVILEGES.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-4875828447254597271?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/4875828447254597271/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=4875828447254597271' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/4875828447254597271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/4875828447254597271'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2008/02/i-have-lost-my-mysql-root-password-how.html' title='I have lost my MySQL root password, how can I get in?'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-589024088571039238</id><published>2007-12-19T08:31:00.000-08:00</published><updated>2007-12-19T08:34:12.427-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='include function in php5 PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='free php script'/><category scheme='http://www.blogger.com/atom/ns#' term='file upload script'/><category scheme='http://www.blogger.com/atom/ns#' term='file upload'/><category scheme='http://www.blogger.com/atom/ns#' term='file upload in php'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP SCRIPT'/><title type='text'>PHP - File Upload</title><content type='html'>&lt;p&gt;When the &lt;i&gt;uploader.php&lt;/i&gt; file is executed, the uploaded file exists in a temporary storage area on the server.  If the file is not moved to a different location it will be &lt;b&gt;destroyed&lt;/b&gt;!  To save our precious file we are going to need to make use of the &lt;i&gt;$_FILES&lt;/i&gt;  associative array.  &lt;/p&gt; &lt;p&gt;The  &lt;i&gt;$_FILES&lt;/i&gt; array is where PHP stores all the information about files.  There are two elements of this array that we will need to understand for this example. &lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;b&gt;uploadedfile&lt;/b&gt; - &lt;i&gt;uploadedfile&lt;/i&gt; is the reference we assigned in our HTML form.  We will need this  to tell the $_FILES array which file we want to play around with.&lt;/li&gt;&lt;li&gt;&lt;b&gt;$_FILES['uploadedfile']['name']&lt;/b&gt; - &lt;i&gt;name&lt;/i&gt; contains the original path of the user uploaded file.&lt;/li&gt;&lt;li&gt;&lt;b&gt;$_FILES['uploadedfile']['tmp_name']&lt;/b&gt; - &lt;i&gt;tmp_name&lt;/i&gt; contains the path to the temporary file that resides on the server.  The file should exist on   the server in a temporary directory with a temporary name.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Now we can finally start to write a basic PHP upload manager script! Here is how we would get the temporary file name, choose a permanent name, and choose a place to store the file.&lt;/p&gt;&lt;br /&gt;&lt;h2 class="specialT"&gt;PHP Code:&lt;/h2&gt;&lt;br /&gt;&lt;pre class="code"&gt;// Where the file is going to be placed&lt;br /&gt;$target_path = "uploads/";&lt;br /&gt;&lt;br /&gt;/* Add the original filename to our target path. &lt;br /&gt;Result is "uploads/filename.extension" */&lt;br /&gt;$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);&lt;br /&gt;$_FILES['uploadedfile']['tmp_name'];  &lt;/pre&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;NOTE:&lt;/b&gt; You will need to create a new directory in the directory where &lt;i&gt;uploader.php&lt;/i&gt; resides, called "uploads", as we are going to be saving files there.&lt;/p&gt; &lt;p&gt;We now have all we need to successfully save our file to the server.  &lt;i&gt;$target_path&lt;/i&gt; contains the path where we want to save our file to. &lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-589024088571039238?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/589024088571039238/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=589024088571039238' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/589024088571039238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/589024088571039238'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2007/12/php-file-upload.html' title='PHP - File Upload'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-4288028606205796625</id><published>2007-11-19T04:32:00.000-08:00</published><updated>2007-11-19T04:34:24.554-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php mail function example'/><category scheme='http://www.blogger.com/atom/ns#' term='php mail function'/><category scheme='http://www.blogger.com/atom/ns#' term='php example'/><category scheme='http://www.blogger.com/atom/ns#' term='php mail script'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP code'/><title type='text'>E-mail With PHP</title><content type='html'>&lt;span style="font-family:Arial, Helvetica, sans-serif;font-size:85%;"&gt;&lt;span style="font-family:Arial;color:#000099;"&gt;&lt;big&gt;&lt;b&gt;Introduction&lt;/b&gt;&lt;/big&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;One of the major uses of a server side scripting language is to provide a way of sending e-mail from the server and, in particular, to take form input and output it to an e-mail address. In this part I will show you how to send e-mail messages using PHP.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Arial;color:#000099;"&gt;&lt;big&gt;&lt;b&gt;The Mail Command&lt;/b&gt;&lt;/big&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Mail is extremely easy to send from PHP, unlike using scripting languages which require special setup (like CGI). There is actually just one command, mail() for sending mail. It is used as follows:&lt;br /&gt;&lt;span style="font-family:Arial;color:#0000ff;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt; mail($to,$subject,$body,$headers);&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;In this example I have used variables as they have descriptive names but you could also just place text in the mail command. Firstly, $to. This variable (or section of the command) contains the e-mail address to which the mail will be sent. $subject is the section for the subject of the e-mail and $body is the actual text of the e-mail.&lt;br /&gt;&lt;br /&gt;The section $headers is used for any additional e-mail headers you may want to add. The most common use of this is for the From field of an e-mai but you can also include other headers like cc and bcc.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Arial;color:#000099;"&gt;&lt;big&gt;&lt;b&gt;Sending An E-mail&lt;/b&gt;&lt;/big&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Before sending your mail, if you are using variables, you must, of course, set up the variable content beforehand. Here is some simple code for sending a message:&lt;br /&gt;&lt;span style="font-family:Arial;color:#0000ff;"&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt; $to = "php@gowansnet.com";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt; $subject = "PHP Is Great";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt; $body = "PHP is one of the best scripting languages around";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt; $headers = "From: webmaster@gowansnet.com\n";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt; mail($to,$subject,$body,$headers);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt; echo "Mail sent to $to";&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;This code will acutally do two things. Firstly it will send a message to php@gowansnet.com with the subject 'PHP Is Great' and the text:&lt;br /&gt;&lt;br /&gt;PHP is one of the best scripting languages around&lt;br /&gt;&lt;br /&gt;and the e-mail will be from webmaster@gowansnet.com. It will also output the text:&lt;br /&gt;&lt;br /&gt;Mail sent to php@gowansnet.com&lt;br /&gt;&lt;br /&gt;to the browser.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Arial;color:#000099;"&gt;&lt;big&gt;&lt;b&gt;Formatting E-mail&lt;/b&gt;&lt;/big&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Something you may have noticed from the example is that the From line ended with \n. This is acutally a very important character when sending e-mail. It is the new line character and tells PHP to take a new line in an e-mail. It is very important that this is put in after each header you add so that your e-mail will follow the international standards and will be delivered.&lt;br /&gt;&lt;br /&gt;The \n code can also be used in the body section of the e-mail to put line breaks in but should not be used in the subject or the To field.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Arial;color:#000099;"&gt;&lt;big&gt;&lt;b&gt;Mail Without Variables&lt;/b&gt;&lt;/big&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The e-mail above could have been sent using different variable names (it is the position of the variables in relation to the commas, not the name of them which decides on their use). It could also have been done on one line using text like this:&lt;br /&gt;&lt;span style="font-family:Arial;color:#0000ff;"&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt; mail("php@gowansnet.com","PHP Is Great","PHP is one of the best scripting languages around","From: webmaster@gowansnet.com\n");&lt;/span&gt;&lt;br /&gt; &lt;/span&gt;&lt;br /&gt;But that would make your code slightly harder to read.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Arial;color:#000099;"&gt;&lt;big&gt;&lt;b&gt;Error Control&lt;/b&gt;&lt;/big&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;As anyone who has been scripting for a while will know, it is extremely easy to make mistakes in your code and it is also very easy to input an invalid e-mail address (especially if you are using your script for form to mail). Because of this, you can add in a small piece of code which will check if the e-mail is sent:&lt;br /&gt;&lt;span style="font-family:Arial;color:#0000ff;"&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt; if(mail($to,$subject,$body,$headers)) {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt; echo "An e-mail was sent to $to with the subject: $subject";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt; } else {&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt; echo "There was a problem sending the mail. Check your code and make sure that the e-mail address $to is valid";&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt; }&lt;/span&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/497541155018092031-4288028606205796625?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/4288028606205796625/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=4288028606205796625' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/4288028606205796625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/4288028606205796625'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2007/11/e-mail-with-php.html' title='E-mail With PHP'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-5847223559278627480</id><published>2007-11-19T04:26:00.000-08:00</published><updated>2007-11-19T04:31:05.737-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='apache install'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql install'/><category scheme='http://www.blogger.com/atom/ns#' term='php.ini'/><category scheme='http://www.blogger.com/atom/ns#' term='php test. php install'/><category scheme='http://www.blogger.com/atom/ns#' term='php info'/><title type='text'>Testing For PHP and MySQL install successfully or not......</title><content type='html'>&lt;span style=";font-family:Arial,Helvetica,sans-serif;font-size:85%;"  &gt; There is a simple test for both PHP and MySQL. Open a text editor and type in the following:&lt;br /&gt;&lt;span style="color: rgb(0, 0, 255);font-family:Arial;" &gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;phpinfo(); &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;and save it as phpinfo.php&lt;br /&gt;&lt;br /&gt;and run in the browser...display the all information about php version, mysql version and other apache setting.&lt;br /&gt;&lt;br /&gt;mainly the display file is information about php.ini file....&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-5847223559278627480?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/5847223559278627480/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=5847223559278627480' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/5847223559278627480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/5847223559278627480'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2007/11/testing-for-php-and-mysql-install.html' title='Testing For PHP and MySQL install successfully or not......'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-5878930111511781912</id><published>2007-11-19T04:22:00.000-08:00</published><updated>2007-11-19T04:30:21.585-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='include function in php4'/><category scheme='http://www.blogger.com/atom/ns#' term='include function in php5 PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP Function'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP4'/><category scheme='http://www.blogger.com/atom/ns#' term='php5'/><title type='text'>The Include Function in PHP5</title><content type='html'>The &lt;i&gt;include&lt;/i&gt; function takes a file name and simply inserts that file's contents into the script that calls used the &lt;i&gt;include&lt;/i&gt; function.&lt;br /&gt;&lt;br /&gt;Well, first of all, this means that you can type up a common header or menu file that you want all your web pages to include. When you add a new page to your site, instead of having to update the links on several web pages, you can simply change the Menu file.&lt;br /&gt;&lt;br /&gt;&lt;pre class="code"&gt;&lt;span style="font-weight: bold;"&gt; include('header.php');&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-family:arial;"&gt;The include command simply takes all the text that exists in the specified file and copies&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;it into the file that uses the include function.  Include is quite useful when you want&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;to include the same PHP, HTML, or text segment on multiple pages of a website.  The include&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;span style="font-family:arial;"&gt;function is used widely by PHP web developers.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-5878930111511781912?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/5878930111511781912/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=5878930111511781912' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/5878930111511781912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/5878930111511781912'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2007/11/include-function-in-php5.html' title='The Include Function in PHP5'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-610151873694186439</id><published>2007-11-14T21:13:00.000-08:00</published><updated>2007-11-14T21:14:24.099-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP ODBC Connection function'/><category scheme='http://www.blogger.com/atom/ns#' term='ODBC connection in PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP Connect with ODBC how?'/><title type='text'>Connecting to ODBC and PHP</title><content type='html'>&lt;pre&gt;&lt;?&lt;br /&gt;# connect to a DSN "mydb" with a user and password "marin"&lt;br /&gt;$connect = odbc_connect("mydb", "marin", "marin");&lt;p&gt;&lt;br /&gt;&lt;br /&gt;# query the users table for name and surname&lt;br /&gt;$query = "SELECT name, surname FROM users";&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;# perform the query&lt;br /&gt;$result = odbc_exec($connect, $query);&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;# fetch the data from the database&lt;br /&gt;while(odbc_fetch_row($result)){&lt;br /&gt; $name = odbc_result($result, 1);&lt;br /&gt; $surname = odbc_result($result, 2);&lt;br /&gt; print("$name $surname\n");&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;# close the connection&lt;br /&gt;odbc_close($connect);&lt;br /&gt;?&gt;&lt;br /&gt;&lt;/p&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-610151873694186439?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/610151873694186439/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=610151873694186439' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/610151873694186439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/610151873694186439'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2007/11/connecting-to-odbc-and-php.html' title='Connecting to ODBC and PHP'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-6405305701115899458</id><published>2007-11-14T21:12:00.000-08:00</published><updated>2007-11-14T21:13:03.094-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP Function'/><category scheme='http://www.blogger.com/atom/ns#' term='ODBC Connection'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP ODBC Connection'/><title type='text'>What is ODBC?</title><content type='html'>Open DataBase Connectivity is an Application Programming Interface (API) that allows a programmer to abstract a program from a database. When writing code to interact with a database, you have to add code that talks to a particular database using a proprietary API. If you want your program to talk to an Access, FoxPro and Oracle databases you have to code your program with three different database API's. This can be quite the daunting task causing much grief. Now, enter ODBC...&lt;p&gt; When programming to interact with ODBC you only need to use the ODBC API (a combination of ODBC extension function calls and the SQL language) to talk to different database products. The ODBC Manager will figure out how to contend with the type of database you are targeting. Regardless of the database type you are using, all of your calls will be to the ODBC API. All that you need to do is have installed an ODBC driver that is specific to the type of database you will be using.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-6405305701115899458?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/6405305701115899458/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=6405305701115899458' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/6405305701115899458'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/6405305701115899458'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2007/11/what-is-odbc.html' title='What is ODBC?'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-4658911234435906096</id><published>2007-11-14T21:08:00.000-08:00</published><updated>2007-11-14T21:11:52.376-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP ODBC Connection function'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP ODBC'/><category scheme='http://www.blogger.com/atom/ns#' term='odbc in php'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP Function'/><category scheme='http://www.blogger.com/atom/ns#' term='ODBC Connection'/><category scheme='http://www.blogger.com/atom/ns#' term='how to create obdc connection'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP ODBC Connection'/><title type='text'>PHP Database ODBC Connection</title><content type='html'>ODBC is an Application Programming Interface  (API) that allows you to connect to a data source (e.g. an MS  Access database).&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;Create an ODBC Connection&lt;/h2&gt;  &lt;p&gt;With an ODBC connection, you can connect to any database, on any computer in  your network, as long as an ODBC connection is available.&lt;/p&gt; &lt;p&gt;Here is how to create an ODBC connection to a MS Access Database: &lt;/p&gt; &lt;ol&gt;&lt;li&gt;Open the &lt;b&gt;Administrative Tools&lt;/b&gt; icon in your Control Panel.&lt;/li&gt;&lt;li&gt;Double-click on the &lt;b&gt;Data Sources (ODBC)&lt;/b&gt; icon inside. &lt;/li&gt;&lt;li&gt;Choose the &lt;b&gt;System DSN&lt;/b&gt; tab. &lt;/li&gt;&lt;li&gt;Click on &lt;b&gt;Add &lt;/b&gt;in the System DSN tab. &lt;/li&gt;&lt;li&gt;Select the &lt;b&gt;Microsoft Access Driver&lt;/b&gt;. Click &lt;b&gt;Finish.&lt;/b&gt; &lt;/li&gt;&lt;li&gt;In the next screen, click &lt;b&gt;Select&lt;/b&gt; to locate the database. &lt;/li&gt;&lt;li&gt;Give the database a &lt;b&gt;Data Source Name (DSN)&lt;/b&gt;. &lt;/li&gt;&lt;li&gt;Click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-4658911234435906096?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/4658911234435906096/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=4658911234435906096' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/4658911234435906096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/4658911234435906096'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2007/11/php-database-odbc.html' title='PHP Database ODBC Connection'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-6596392171318570207</id><published>2007-10-29T22:04:00.000-07:00</published><updated>2007-10-29T22:08:35.019-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql and php database connectivity'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql with php'/><category scheme='http://www.blogger.com/atom/ns#' term='php5.2'/><title type='text'>Connecting to a mySQL database using PHP</title><content type='html'>&lt;small&gt;&lt;span style="font-family:Arial;"&gt;&lt;strong&gt;SHOW available tables in mySQL database&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/small&gt;&lt;p&gt;&lt;small&gt;&lt;span style="font-family:Arial;"&gt;Similar to opening a file to write to it, you have to open a connection to mySQL before you can do anything. The syntax of this function is as follows:&lt;/span&gt;&lt;/small&gt;&lt;/p&gt;  &lt;p&gt;&lt;small&gt;&lt;span style="font-family:Arial;"&gt;mysql_connect("localhost OR hostname:port", "httpd OR username", "" or "password"); &lt;/span&gt;&lt;/small&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-family:Courier;"&gt;&lt;small&gt;&lt;?&lt;/small&gt;&lt;br /&gt;&lt;small&gt;$mysql_access = &lt;strong&gt;mysql_connect&lt;/strong&gt;("localhost", "username", "password");&lt;/small&gt;&lt;br /&gt;&lt;small&gt;mysql_close($mysql_access);&lt;/small&gt;&lt;br /&gt;&lt;small&gt;?&gt;&lt;/small&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;small&gt;&lt;span style="font-family:Arial;"&gt;The function mysql_close is unnecessary unless you are setting a persistent connection. To set a &lt;em&gt;persistent&lt;/em&gt; mySQL connection use:&lt;/span&gt;&lt;/small&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-family:Courier;"&gt;&lt;small&gt;mysql_pconnect("localhost", "username", "password");&lt;/small&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;small&gt;&lt;span style="font-family:Arial;"&gt;You would want to use persistent connections where you would have a lot of simulataneous connections from the same user through the script.&lt;/span&gt;&lt;/small&gt;&lt;/p&gt;  &lt;p&gt;&lt;small&gt;&lt;span style="font-family:Arial;"&gt;The following script below will open your mySQL database connection and show the tables available to you in your mySQL database. &lt;em&gt;You must always open a connection to the mySQL database before doing anything else&lt;/em&gt; (you only need to open it at the beginning of a script, and then you can run multiple queries if you want). This is good for testing your ability to successfully access the mySQL database.&lt;/span&gt;&lt;/small&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-family:Courier;"&gt;$mysql_access = mysql_connect("localhost", $user, $pw);&lt;br /&gt;mysql_select_db($db, $mysql_access);&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-family:Courier;"&gt;$result = mysql_query("SHOW tables", $mysql_access);&lt;br /&gt;  while($row = mysql_fetch_row($result))&lt;br /&gt;  {&lt;br /&gt;      print("$row[0]&lt;br /&gt;");&lt;br /&gt; }&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier;"&gt;in above script&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier;"&gt;$user is a mysql username.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier;"&gt;$pw is mysql password.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier;"&gt;$db is mysql database name&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Courier;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;strong&gt;&lt;span style="font-family:Arial;"&gt;&lt;small&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/small&gt;&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/497541155018092031-6596392171318570207?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/6596392171318570207/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=6596392171318570207' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/6596392171318570207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/6596392171318570207'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2007/10/connecting-to-mysql-database-using-php.html' title='Connecting to a mySQL database using PHP'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-7785570083836916559</id><published>2007-10-26T07:35:00.000-07:00</published><updated>2007-10-26T07:36:29.356-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='phpoo code'/><category scheme='http://www.blogger.com/atom/ns#' term='php expert coding'/><category scheme='http://www.blogger.com/atom/ns#' term='php biggener'/><category scheme='http://www.blogger.com/atom/ns#' term='php first code'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP SCRIPT'/><category scheme='http://www.blogger.com/atom/ns#' term='php first programme'/><title type='text'>php programme first php script</title><content type='html'>The Most Basic Computer Program&lt;br /&gt;So how do I do it in PHP? Well the two simplest ways are using Print or Echo.&lt;br /&gt;    &lt;?php    Print "Hello, World!";    ?&gt;&lt;br /&gt;    &lt;?php    Echo "Hello, World!";    ?&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-7785570083836916559?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/7785570083836916559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=7785570083836916559' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/7785570083836916559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/7785570083836916559'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2007/10/php-programme-first-php-script.html' title='php programme first php script'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-1140387320762410032</id><published>2007-10-26T07:32:00.000-07:00</published><updated>2007-10-26T07:34:48.129-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php language'/><category scheme='http://www.blogger.com/atom/ns#' term='php scripe'/><category scheme='http://www.blogger.com/atom/ns#' term='wamp server for php and mysql and apache'/><category scheme='http://www.blogger.com/atom/ns#' term='php server'/><category scheme='http://www.blogger.com/atom/ns#' term='how learn php'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP code'/><category scheme='http://www.blogger.com/atom/ns#' term='php wamp installation'/><title type='text'>PHP5 and mysql and apache in one pack-WAMP Server installation on windows</title><content type='html'>PHP5 and mysql and apache in one pack-WAMP Server installation on windows&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can install Apache Server, MySQL, and PHP in one step using WAMP. WAMP is a freeware package that bundles Apache, MySQL, and PHP into one executable. You can &lt;a href="http://www.en.wampserver.com/download.php" target="_blank"&gt;download WAMP from the project homepage&lt;/a&gt;. Once you download WAMP, double click the icon and begin the install process.&lt;br /&gt;Click Next to begin:&lt;a href="http://phpsourcecode.blogspot.com/"&gt;&lt;/a&gt;After agreeing to the WAMP license, select the destination location. Leave the default location as "c:\wamp" and click Next:&lt;a href="http://coolyarri.blogspot.com/"&gt;&lt;/a&gt;Leave the default Start Menu shortcut as "WampServer" and click Next:&lt;a href="http://coolyarri.blogspot.com/"&gt;&lt;/a&gt;Select automatically launch WAMP5 on startup. This will allow Vista to act as a server whenever it is started. Select the check box and click Next:&lt;a href="http://diwalisms.blogspot.com/"&gt;&lt;/a&gt;WAMP will summarize your selections. Click Install and WAMP will begin the install process:&lt;a href="http://diwalisms.blogspot.com/"&gt;&lt;/a&gt;WAMP will extract and install itself. The process should only take a few seconds, and WAMP will prompt you to choose a folder for your "DocumentRoot." Leave the default folder as "www" and click Ok:&lt;a href="http://phpsourcecode.blogspot.com/"&gt;&lt;/a&gt;WAMP will prompt you to enter the SMTP server to be used by PHP to send emails. Leave the default value as "localhost" and click Next:&lt;a href="http://coolpositive.blogspot.com/"&gt;&lt;/a&gt;WAMP will then prompt you to enter the default email address to be used by PHP to send emails. Put your email address in this field and click Next:&lt;a href="http://coolyarri.blogspot.com/"&gt;&lt;/a&gt;If you have Firefox installed, WAMP will ask you if you would like to use Firefox as the default browser with WAMP. This is a personal preference, so feel free to choose "Yes" or "No." I will choose "Yes" and then click Next:&lt;a href="http://coolpositive.blogspot.com/"&gt;&lt;/a&gt;You will likely be prompted by Vista whether the Windows Firewall should allow or block the features of WAMP. You want to allow all of the features of WAMP, so click Unblock:&lt;a href="http://phpsourcecode.blogspot.com/"&gt;&lt;/a&gt;Congratulations, the installation process is complete, click Finish and Launch WAMP5 now:&lt;a href="http://coolpositive.blogspot.com/"&gt;&lt;/a&gt;Open a browser and enter "localhost" as the URL, and you will see a summary of the installation process:now go to browser… and type in the address bar…..&lt;br /&gt;&lt;br /&gt;&lt;a href="http://localhost/"&gt;http://localhost/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;and press inter..default wamp server page is open……&lt;br /&gt;now u go to c:/wamp/www/myfolder&lt;br /&gt;&lt;br /&gt;myfolder is ur web folder where u put on ur .php pages.&lt;br /&gt;&lt;br /&gt;And now run ur php page like this…&lt;br /&gt;&lt;br /&gt;Go to Browser address bar&lt;br /&gt;&lt;br /&gt;&lt;a href="http://localhost/myfolder/"&gt;http://localhost/myfolder/&lt;/a&gt; index.php&lt;br /&gt;&lt;br /&gt;now happy and enjoy…..now read the other post from my blog and enjoy…and expert in the php script…..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-1140387320762410032?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/1140387320762410032/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=1140387320762410032' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/1140387320762410032'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/1140387320762410032'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2007/10/php5-and-mysql-and-apache-in-one-pack.html' title='PHP5 and mysql and apache in one pack-WAMP Server installation on windows'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-4633494663876075817</id><published>2007-10-26T07:26:00.000-07:00</published><updated>2007-10-26T07:28:59.019-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php install on iis'/><category scheme='http://www.blogger.com/atom/ns#' term='php on windows platform'/><category scheme='http://www.blogger.com/atom/ns#' term='how to install php on iis'/><category scheme='http://www.blogger.com/atom/ns#' term='how to install php'/><category scheme='http://www.blogger.com/atom/ns#' term='php5'/><category scheme='http://www.blogger.com/atom/ns#' term='iis installation in php'/><category scheme='http://www.blogger.com/atom/ns#' term='php6'/><title type='text'>php on IIS 6 intallation</title><content type='html'>PHP is a really cool server side scripting interface with loads of options and modules and is relatively easier than ASP (the only other server side scripting language I've used). IIS 6 is also a cool web server with loads of new options. So here is how you configure php on IIS:(I'm assuming IIS is already installed on your box)&lt;br /&gt;1. Download php from this &lt;a href="http://www.php.net"&gt; location&lt;/a&gt;2. Unzip the package to some location(c:\php or whatever)3. Copy the php.ini-recommended file to your %systemroot% directory(usually C:\Windows) or to the %PHPRC% location, if %PHPRC% variable is set.4. Rename the file as php.ini5. Edit the file to make your config. I usually do the following(only minimal stuff):a. Open short tags ("" should work for me, I'm too lazy)b. Edit my extension_dir to the right location("c:\php\ext\" or whatever)** DO NOT FORGET TO PUT THE TRAILING BACKSLASH.**c. Enable my extensions...like php_ldap etc...d. other stuff...error handling, session mgmt etc etc....please read the docs. :-)6. Open your IIS snap-in (inetmgr in "Run")7. Create your website/virtual directory.8. Enable php on the entire website or your virtual directory:a. Go to the directory tab, click configuration, click Add.b. Put in ".php" (without the quotes) in the extension box.c. Point the Executable file to "php5isapi.dll" (in your php directory)d. Give your verbs(usually GET,HEAD,POST,TRACE would do)e. Ensure "Check that file exists" is checked. (saves time and resources)9. Only for IIS 6:a. Click on "Web Service Extensions".b. Click "Add new web service extension"c. Give some name and add the php5isapi.dll file and select allow.10. Add the php directory to your path(sysdm.cpl in "Run",Environment Variables under the Advanced tab, under "System Variables", edit the Path variable and append the path to your php directory to it(like C:\php where C:\php is the location of your php source).11. Restart IIS and enjoy.&lt;br /&gt;Update(thanks to 'anonymous' :-): One important point I forgot to mention - You need to give the user IIS is running as (usually IUSR_MACHINENAME) permissions on your php directory and files, other wise you will end up with 403 or 404 errors.&lt;br /&gt;I've seen on a lot of posts where people mention that they need to copy some files to system32 directory, and I do not think that its required. Here is a filemon snapshot of the location my IIS is finding the extensions:&lt;br /&gt;&lt;br /&gt;Each time you make any changes to the php.ini file, you need to restart your webserver.&lt;br /&gt;UPDATE: If you get a prompt for username and password in Firefox even though you enabled just anonymous access, you need to enable the following:a. In your Firefox window,type in 'about:config' without the quotesb. You will find a text box called Filter, type in 'auth' without the quotesc. You'll find an entry called network-automatic-ntlm-auth.trusted-urisd. Double-click on it. It will open a small input window.e. Enter the name of the website (usually if you're having issues with &lt;a href="http://localhost/"&gt;http://localhost&lt;/a&gt;), enter localhost and click OK. (You can enter multiple sites by separating them with commas)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-4633494663876075817?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/4633494663876075817/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=4633494663876075817' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/4633494663876075817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/4633494663876075817'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2007/10/php-on-iis-6-intallation.html' title='php on IIS 6 intallation'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-8770437973034002219</id><published>2007-10-26T06:31:00.000-07:00</published><updated>2007-10-26T06:34:14.124-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php start'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP installation'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql start'/><category scheme='http://www.blogger.com/atom/ns#' term='php how start'/><title type='text'>how to start php coding and setup and installation,</title><content type='html'>Install an Apache server on a Windows or Linux machine&lt;br /&gt;Install PHP on a Windows or Linux machine&lt;br /&gt;Install MySQL on a Windows or Linux machine&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-8770437973034002219?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/8770437973034002219/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=8770437973034002219' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/8770437973034002219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/8770437973034002219'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2007/10/how-to-start-php-coding-and-setup-and.html' title='how to start php coding and setup and installation,'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-2408689988620703101</id><published>2007-10-26T06:25:00.000-07:00</published><updated>2007-10-26T06:30:50.273-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP + MySQL'/><category scheme='http://www.blogger.com/atom/ns#' term='LAMP'/><category scheme='http://www.blogger.com/atom/ns#' term='MYsql datbase'/><category scheme='http://www.blogger.com/atom/ns#' term='why choose php with mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='php with mysql why?'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP SCRIPT'/><category scheme='http://www.blogger.com/atom/ns#' term='LINUX'/><category scheme='http://www.blogger.com/atom/ns#' term='Apache'/><category scheme='http://www.blogger.com/atom/ns#' term='Introduction to PHP.PHP 5.2.4'/><title type='text'>PHP + MySQL</title><content type='html'>Why PHP?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PHP runs on different platforms (Windows, Linux, Unix, etc.)&lt;br /&gt;PHP is compatible with almost all servers used today (Apache, IIS, etc.)&lt;br /&gt;PHP is FREE to download from the official PHP resource: &lt;a href="http://www.php.net/" target="_blank"&gt;www.php.net&lt;/a&gt;&lt;br /&gt;PHP is easy to learn and runs efficiently on the server side&lt;br /&gt;&lt;br /&gt;PHP scripting----------&lt;br /&gt;&lt;br /&gt;PHP is now officially known as “PHP: HyperText Preprocessor”. It is a server-side scripting language usually written in an HTML context. Unlike an ordinary HTML page, a PHP script is not sent directly to a client by the server; instead, it is parsed by the PHP binary or module, which is server-side installed. HTML elements in the script are left alone, but PHP code is interpreted and executed. PHP code in a script can query databases, create images, read and write files, talk to remote servers - the possibilities are endless. The output from PHP code is combined with the HTML in the script and the result sent to the user?s web-browser, therefore it can never tell the user whether the web-server uses PHP or not, because all the browser sees is HTML.&lt;br /&gt;PHP’s support for Apache and MySQL further increases its popularity. Apache is now the most-used web-server in the world, and PHP can be compiled as an Apache module. MySQL is a powerful free SQL database, and PHP provides a comprehensive set of functions for working with it. The combination of Apache, MySQL and PHP is all but unbeatable.&lt;br /&gt;That doesn?t mean that PHP cannot work in other environments or with other tools. In fact, PHP supports an extensive list of databases and web-servers. The rise in popularity of PHP has coincided with a change of approach in web-publishing. While in the mid-1990s it was ok to build sites, even relatively large sites, with hundreds of individual hard-coded HTML pages, today?s webmasters are making the most of the power of databases to manage their content more effectively and to personalize their sites according to individual user preferences.&lt;br /&gt;&lt;br /&gt;Reasons for using PHP&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;There are some indisputable great reasons to work with PHP. As an open source product, PHP is well supported by a talented production team and a committed user community. Furthermore, PHP can be run on all the major operating systems with most servers.&lt;br /&gt;The speed of development is also important. Because PHP allows you to separate HTML code from scripted elements, you will notice a significant decrease in development time on many projects. In many instances, you will be able to separate the coding stage of a project from the design and build stages. Not only can this make life easier for you as a programmer, but it also can remove obstacles that stand in the way of effective and flexible design.&lt;br /&gt;Well-maintained open source projects offer users additional benefits. You benefit from an accessible and committed community who offer a wealth of experience in the subject, as fast and as cheap as possible. Chances are that any problem you encounter in your coding can be answered swiftly and easily with a little research. If that fails, a question sent to a mailing list or forum can have an intelligent, authoritative response. You also can be sure that bugs will be addressed as they are found, and that new features will be made available as the need is defined. You will not have to wait for the next commercial release before taking advantage of improvements, and there is no hidden interest in a particular server product or operating system. You are free to make choices that suit your needs or those of your clients and incorporate whatever components you want.&lt;br /&gt;&lt;br /&gt;Why MySQL?&lt;br /&gt;&lt;br /&gt;Choosing a database system depends on three main factors; the platform on which you work, your finances and what you want to achieve. The reason I chose MySQL is because, I work mostly on the Linux system and MySQL is free for Linux. Also, I am an ardent supporter of Open Source Software movement and firmly believe that the combination of Linux, Apache, MySQL and PHP (LAMP) is hard to beat.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-2408689988620703101?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/2408689988620703101/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=2408689988620703101' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/2408689988620703101'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/2408689988620703101'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2007/10/php-mysql.html' title='PHP + MySQL'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-4863989909957172144</id><published>2007-10-26T06:22:00.001-07:00</published><updated>2007-10-26T06:25:44.571-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MYSQL defination'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql and php combination'/><category scheme='http://www.blogger.com/atom/ns#' term='what is mysql'/><title type='text'>What is MySQL?</title><content type='html'>MySQL is a simple, yet powerful Open Source Software relational database management system that uses SQL.&lt;br /&gt;&lt;br /&gt;MYSQL(pronounced "My ess cue el") is an open source Relational Database Management System that uses Structured Query Language. Information is stored in "Tables" which can be thought of as the equivalent of Excel spreadsheets. A single MySQL database can contain many tables at once and store thousands of individual records. It's fast, reliable and flexible.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-4863989909957172144?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/4863989909957172144/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=4863989909957172144' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/4863989909957172144'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/4863989909957172144'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2007/10/what-is-mysql.html' title='What is MySQL?'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-497541155018092031.post-434048059943385220</id><published>2007-10-26T06:15:00.000-07:00</published><updated>2007-10-26T06:21:50.521-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP: Hypertext Preprocessor'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP SCRIPT'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP code'/><category scheme='http://www.blogger.com/atom/ns#' term='Introduction to PHP.PHP 5.2.4'/><title type='text'>What Is PHP?</title><content type='html'>PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.&lt;br /&gt;&lt;br /&gt;The endless possibilities of the PHP scripting language and a great community of users has made it one of the most popular open-source languages. For all you people living outside the UNIX world, Open Source means it doesn?t cost anything. You can use it as much as you want and where you want, and nobody will ever charge you thousands of dollars for licenses and support. Even though it was originally conceived as a set of macros to help coders maintain personal home pages, its name grew a lot more from its purpose. Since then, PHP?s capabilities have been extended, taking it beyond a set of utilities to a full-featured programming language, capable of managing huge database-driven online environments.&lt;br /&gt;&lt;br /&gt;PHP stands for PHP: Hypertext Preprocessor&lt;br /&gt;PHP is a server-side scripting language, like ASP&lt;br /&gt;PHP scripts are executed on the server&lt;br /&gt;PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.)&lt;br /&gt;PHP is an open source software (OSS)&lt;br /&gt;PHP is free to download and use&lt;br /&gt;&lt;br /&gt;A PHP file may contain text, HTML tags and scripts. Scripts in a PHP file are executed on the server.&lt;br /&gt;&lt;br /&gt;That's a mouthful, but if we break the definition down into smaller pieces, it is easier to understand.&lt;br /&gt;server-side: This means that PHP scripts execute on the Web server, not within the browser on your local machine.&lt;br /&gt;cross-platform: Cross-platform means that PHP scripts can run on many different operating systems and Web servers. PHP is available for the two most popular Web server configurations (IIS running on Windows NT and Apache running on UNIX).&lt;br /&gt;HTML embedded scripting language: This means that PHP statements and commands are actually embedded in your HTML documents. When the Web server sees the PHP statements in the Web page, the server executes the statements and sends the resulting output along with the rest of the HTML. PHP commands are parsed by the server much like Active Server Pages or Cold Fusion tags.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/497541155018092031-434048059943385220?l=phpsourcecode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpsourcecode.blogspot.com/feeds/434048059943385220/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=497541155018092031&amp;postID=434048059943385220' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/434048059943385220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/497541155018092031/posts/default/434048059943385220'/><link rel='alternate' type='text/html' href='http://phpsourcecode.blogspot.com/2007/10/what-is-php.html' title='What Is PHP?'/><author><name>Manish Sharma</name><uri>http://www.blogger.com/profile/16968715867540278007</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
