<?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/opensearch/1.1/' xmlns:georss='http://www.georss.org/georss' xmlns:thr='http://purl.org/syndication/thread/1.0' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='W/&quot;DEMARX47cSp7ImA9WhdTFU0.&quot;'><id>tag:blogger.com,1999:blog-886761804755686491</id><updated>2011-07-12T23:34:04.009+02:00</updated><title>Learn PHP</title><subtitle type='html'>This is a blog for learning php.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://phptunning.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/886761804755686491/posts/default?redirect=false&amp;v=2'/><link rel='alternate' type='text/html' href='http://phptunning.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Vlado</name><uri>http://www.blogger.com/profile/01966107729029246596</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry gd:etag='W/&quot;DEQDQnk4eyp7ImA9WhdTFU0.&quot;'><id>tag:blogger.com,1999:blog-886761804755686491.post-4244854185615673891</id><published>2011-07-12T23:29:00.003+02:00</published><updated>2011-07-12T23:32:53.733+02:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-07-12T23:32:53.733+02:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='$GLOBALS'/><title>$GLOBALS</title><content type='html'>$GLOBALS is a super global variable and it is structured like array.  Well most of the superglobals are asociative arrays. It contains all  user defined variables that are accesible in the global scope.&lt;br /&gt;
&lt;br /&gt;
Here is an example&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
&lt;br /&gt;
$var="Hello";&lt;br /&gt;
&lt;br /&gt;
echo $GLOBALS["var"];&lt;br /&gt;
//it will print Hello&lt;br /&gt;
&lt;br /&gt;
function varFunc(){&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $var="Hello world!";&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
varFunc(); &lt;br /&gt;
&lt;br /&gt;
echo $GLOBALS["var"];&lt;br /&gt;
//it will still print Hello&lt;br /&gt;
//Why? Because $var located in the function is a local variable and is //inaccessible.&amp;nbsp; &lt;br /&gt;
?&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/886761804755686491-4244854185615673891?l=phptunning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phptunning.blogspot.com/feeds/4244854185615673891/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phptunning.blogspot.com/2011/07/globals.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/886761804755686491/posts/default/4244854185615673891?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/886761804755686491/posts/default/4244854185615673891?v=2'/><link rel='alternate' type='text/html' href='http://phptunning.blogspot.com/2011/07/globals.html' title='$GLOBALS'/><author><name>Vlado</name><uri>http://www.blogger.com/profile/01966107729029246596</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='04245909818725142467'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DEMARX46cSp7ImA9WhdTFU0.&quot;'><id>tag:blogger.com,1999:blog-886761804755686491.post-4107348846417361365</id><published>2011-07-12T23:21:00.004+02:00</published><updated>2011-07-12T23:34:04.019+02:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-07-12T23:34:04.019+02:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='server'/><category scheme='http://www.blogger.com/atom/ns#' term='files'/><category scheme='http://www.blogger.com/atom/ns#' term='post'/><category scheme='http://www.blogger.com/atom/ns#' term='cookie'/><category scheme='http://www.blogger.com/atom/ns#' term='request'/><category scheme='http://www.blogger.com/atom/ns#' term='superglobals'/><category scheme='http://www.blogger.com/atom/ns#' term='get'/><title>About predefined global variables in PHP</title><content type='html'>One thing that makes PHP so flexible and easy to use is that it has several predefined variables which are global and accessible from whichever PHP script you write.&lt;br /&gt;
&lt;br /&gt;
Here is a complete list of them:&lt;br /&gt;
&lt;br /&gt;
&lt;ul class="chunklist chunklist_reference"&gt;&lt;li&gt;&lt;a href="http://www.php.net/manual/en/language.variables.superglobals.php"&gt;Superglobals&lt;/a&gt; — Superglobals are built-in variables that are always available in all scopes&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.php.net/manual/en/reserved.variables.globals.php"&gt;$GLOBALS&lt;/a&gt; — References all variables available in global scope&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.php.net/manual/en/reserved.variables.server.php"&gt;$_SERVER&lt;/a&gt; — Server and execution environment information&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.php.net/manual/en/reserved.variables.get.php"&gt;$_GET&lt;/a&gt; — HTTP GET variables&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.php.net/manual/en/reserved.variables.post.php"&gt;$_POST&lt;/a&gt; — HTTP POST variables&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.php.net/manual/en/reserved.variables.files.php"&gt;$_FILES&lt;/a&gt; — HTTP File Upload variables&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.php.net/manual/en/reserved.variables.request.php"&gt;$_REQUEST&lt;/a&gt; — HTTP Request variables&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.php.net/manual/en/reserved.variables.session.php"&gt;$_SESSION&lt;/a&gt; — Session variables&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.php.net/manual/en/reserved.variables.environment.php"&gt;$_ENV&lt;/a&gt; — Environment variables&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.php.net/manual/en/reserved.variables.cookies.php"&gt;$_COOKIE&lt;/a&gt; — HTTP Cookies&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.php.net/manual/en/reserved.variables.phperrormsg.php"&gt;$php_errormsg&lt;/a&gt; — The previous error message&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.php.net/manual/en/reserved.variables.httprawpostdata.php"&gt;$HTTP_RAW_POST_DATA&lt;/a&gt; — Raw POST data&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.php.net/manual/en/reserved.variables.httpresponseheader.php"&gt;$http_response_header&lt;/a&gt; — HTTP response headers&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.php.net/manual/en/reserved.variables.argc.php"&gt;$argc&lt;/a&gt; — The number of arguments passed to script&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.php.net/manual/en/reserved.variables.argv.php"&gt;$argv&lt;/a&gt; — Array of arguments passed to script&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;ul class="chunklist chunklist_reference"&gt;&lt;/ul&gt;You can get a full reference of them on this page&amp;nbsp;&lt;a href="http://php.net/manual/en/reserved.variables.php"&gt;superglobals&lt;/a&gt; &lt;br /&gt;
The most commonly used are these: $GLOBALS, $_POST, $_GET, $_REQUEST, $_COOKIE, $_SERVER and $_FILES. So I will explain these in different posts and show some examples.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/886761804755686491-4107348846417361365?l=phptunning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phptunning.blogspot.com/feeds/4107348846417361365/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phptunning.blogspot.com/2011/07/about-predefined-global-variables-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/886761804755686491/posts/default/4107348846417361365?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/886761804755686491/posts/default/4107348846417361365?v=2'/><link rel='alternate' type='text/html' href='http://phptunning.blogspot.com/2011/07/about-predefined-global-variables-in.html' title='About predefined global variables in PHP'/><author><name>Vlado</name><uri>http://www.blogger.com/profile/01966107729029246596</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='04245909818725142467'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DkEDQ3Y-eSp7ImA9WhdTFU0.&quot;'><id>tag:blogger.com,1999:blog-886761804755686491.post-6223862564087043972</id><published>2011-07-12T12:00:00.000+02:00</published><updated>2011-07-12T23:04:32.851+02:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-07-12T23:04:32.851+02:00</app:edited><title>Configure installation on Ubuntu</title><content type='html'>There are several stuff that need to be configured in order to develop with php.&lt;br /&gt;
&lt;br /&gt;
Firstly when installing MySQL server you will be prompted for password. Usually the default user is named root and I usually give him a password "root" but you can place your own. My recommendation is to create new user on MySQL and use the new one with php development. But its up to you (you can use phpMyAdmin or MySQL WB for this).&lt;br /&gt;
&lt;br /&gt;
Ok so next thing is to get up and running phpMyAdmin. By default It is not configured ad running so we will do this:&lt;br /&gt;
&lt;br /&gt;
Open terminal and run this: &lt;br /&gt;
&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;code&gt;sudo gedit /etc/apache2/apache2.conf&lt;/code&gt;&lt;/b&gt;&lt;/span&gt; &lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: small;"&gt; when the apache2.conf is oppened got to the bottom of the page and add this line:&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;Include /etc/phpmyadmin/apache.conf&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: small;"&gt;After this run&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;code&gt;sudo /etc/init.d/apache2 restart&lt;/code&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: large;"&gt;&lt;code&gt;to restart the apache&lt;b&gt;. &lt;/b&gt;Now open firefox and type the address http://127.0.0.1/phpmyadmin. The login form should appear. Enter the username and password for the root user and you will enter the world of MySQL database server.&amp;nbsp;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: large;"&gt;&lt;code&gt;The next thing to configure is MySQL WB.&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: large;"&gt;&lt;code&gt;If you have already installed MySQL WB we will set up a basic conection to our mysql server. Open MySQL WB and click &lt;b&gt;new connection. &lt;/b&gt;New dialog windows should open. Leave all settings to default and type in the connection name. In my cas i will name it mysql. Also it is helpful to store the root's password in key chain for future use. So press the &lt;b&gt;store in key chain &lt;/b&gt;and enter the roots password. This will remember the password so you will not have to reenter it again. That's it, press Test connection. If you get that connection parameters are good than your conn is good and ready to be used. Press ok.&amp;nbsp; New windows will open and you will see the existing databases on the left panel.&lt;/code&gt;&lt;b&gt;&lt;code&gt;&lt;/code&gt;&lt;/b&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/886761804755686491-6223862564087043972?l=phptunning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phptunning.blogspot.com/feeds/6223862564087043972/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phptunning.blogspot.com/2011/07/configure-installation-on-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/886761804755686491/posts/default/6223862564087043972?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/886761804755686491/posts/default/6223862564087043972?v=2'/><link rel='alternate' type='text/html' href='http://phptunning.blogspot.com/2011/07/configure-installation-on-ubuntu.html' title='Configure installation on Ubuntu'/><author><name>Vlado</name><uri>http://www.blogger.com/profile/01966107729029246596</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='04245909818725142467'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DkYGSHc8eSp7ImA9WhdTFEs.&quot;'><id>tag:blogger.com,1999:blog-886761804755686491.post-6050979546988214704</id><published>2011-07-12T11:29:00.000+02:00</published><updated>2011-07-12T11:48:49.971+02:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-07-12T11:48:49.971+02:00</app:edited><title>Installation on Ubuntu</title><content type='html'>Well there are several stuff you need to do in order to start developing php applications.&lt;br /&gt;
&lt;br /&gt;
This is the necessary software for php on Ubuntu:&lt;br /&gt;
&lt;br /&gt;
1. php5 engine&lt;br /&gt;
2. apache2 server&lt;br /&gt;
3. mysql database server&lt;br /&gt;
4. phpMyAdmin and MySQL Workbench.&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
I am using the separated installation of the software because I think it is easiest to manage. How ever you can use the xampp installation for linux. It will install everything in one go. Here is the page&amp;nbsp; &lt;a href="http://www.apachefriends.org/en/xampp.html"&gt;xampp&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Ok. So now open terminal on linux and type this command:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;sudo apt-get install php5 apache2 mysql-server phpmyadmin&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
and enter your linux user password.&lt;br /&gt;
&lt;br /&gt;
This will install all 4 parts of the above software except MySQL WB which we will install manually. I will use MySQL WB in my posts because it supports some things phpMyAdmin doesn't. But that doesn't mean that phpMyAdmin is bad. It is browser based database admin tool so some thins are not supported like MySQL WB desktop environment.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Ok so now we will install MySQL WB. Got to this page &lt;a href="http://wb.mysql.com/%20"&gt;http://wb.mysql.com/ &lt;/a&gt;adn click download. It will redirect you to the downloads page. Go down and choose the Operating System version. In our case it will be Ubuntu Linux. Select the 32 or 64 bit version and click download. If you already have mysql account log in and select a mirror (choose the nearest one to your location). If not create new one and than download.&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;I downloaded this file &lt;code&gt;&lt;b&gt;mysql-workbench-gpl-5.2.34-1ubu1010-i386.deb&lt;/b&gt;.&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt; &lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;"&gt;Go to downloads folder with terminal and run this command &lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;code&gt;sudo dpkg -i your_package_name.deb&lt;/code&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: large;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: large;"&gt;&lt;code&gt;Mine was&amp;nbsp;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: large;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;code&gt;sudo dpkg -i &lt;/code&gt;&lt;/b&gt;&lt;code&gt;&lt;b&gt;mysql-workbench-gpl-5.2.34-1ubu1010-i386.deb&lt;/b&gt;&lt;/code&gt;&lt;/span&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt; &lt;/code&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;code&gt;&lt;br /&gt;
&lt;/code&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: large;"&gt;&lt;code&gt;This will install it on your ubuntu and you can see it in the programming menu.&lt;/code&gt;&lt;/span&gt;&lt;b&gt;&lt;code&gt;&lt;br /&gt;
&lt;/code&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/886761804755686491-6050979546988214704?l=phptunning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phptunning.blogspot.com/feeds/6050979546988214704/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phptunning.blogspot.com/2011/07/installation-on-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/886761804755686491/posts/default/6050979546988214704?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/886761804755686491/posts/default/6050979546988214704?v=2'/><link rel='alternate' type='text/html' href='http://phptunning.blogspot.com/2011/07/installation-on-ubuntu.html' title='Installation on Ubuntu'/><author><name>Vlado</name><uri>http://www.blogger.com/profile/01966107729029246596</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='04245909818725142467'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CEIHRHY4cCp7ImA9WhdTFEs.&quot;'><id>tag:blogger.com,1999:blog-886761804755686491.post-1875444384844323076</id><published>2011-07-12T11:18:00.000+02:00</published><updated>2011-07-12T11:22:15.838+02:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-07-12T11:22:15.838+02:00</app:edited><title>The basic concepts</title><content type='html'>Why do we call PHP scripting language?&lt;br /&gt;
&lt;br /&gt;
Wll you write scripts in a file with php extension like example.php.&lt;br /&gt;
&lt;br /&gt;
PHP code can be embeded within html code in every place you like to do so.&amp;nbsp; Why is this possible?&amp;nbsp; Well php is a code that is executed on the server, not on the browser side. So php code is not necessary for the browser.&lt;br /&gt;
&lt;br /&gt;
We add php code with the following start and end delimiters:&lt;br /&gt;
&lt;br /&gt;
-end. Any code between will be considered as php code and will not be shown or either processed by the browser.&lt;br /&gt;
&lt;br /&gt;
Here is an example:&lt;br /&gt;
Create a file called example.php and open it with notepad or any text editor and write this code&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
&lt;br /&gt;
echo "Hello world!"; &lt;br /&gt;
&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will print Hello world in the browser.&amp;nbsp; But to execute this command we will have to install all necessary software in order this to work. Comming up next, Installation.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/886761804755686491-1875444384844323076?l=phptunning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phptunning.blogspot.com/feeds/1875444384844323076/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phptunning.blogspot.com/2011/07/basic-concepts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/886761804755686491/posts/default/1875444384844323076?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/886761804755686491/posts/default/1875444384844323076?v=2'/><link rel='alternate' type='text/html' href='http://phptunning.blogspot.com/2011/07/basic-concepts.html' title='The basic concepts'/><author><name>Vlado</name><uri>http://www.blogger.com/profile/01966107729029246596</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='04245909818725142467'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;A0ICQng4fCp7ImA9WhdTFEg.&quot;'><id>tag:blogger.com,1999:blog-886761804755686491.post-7407845869624270802</id><published>2011-07-12T10:32:00.000+02:00</published><updated>2011-07-12T10:32:43.634+02:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-07-12T10:32:43.634+02:00</app:edited><title>For start, the basics of PHP</title><content type='html'>The programming language PHP or PHP is a Hypertext Preprocessor is a scripting language mainly developed to create web pages and sites the fast and easy way.&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
He is developed on C/C++ platform so newly created extensions base on C/C++ can be easily added. Thats why today PHP is used for many more types of applications rather that just webpages. For example there are extension to develop OpenGL graphics with PHP commands :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The latest version was php 5.3 but something is whispering that there is ver. 5.4. Anyway I will work on ver. 5.3 and maybe&amp;nbsp; go to 5.4 in the future.&lt;br /&gt;
&lt;br /&gt;
Which is the advanced feature that that makes PHP so popular and wanted?&lt;br /&gt;
&lt;br /&gt;
Well&amp;nbsp; it contains large set of functions for doing different tasks, for example you can make validation of email with just one function and two parameters. As for other languages you have to think of creating regular expression in order to do so. So if you need a website PHP is the right choice for you.&lt;br /&gt;
&lt;br /&gt;
PHP has its own good API documentation which is available on &lt;a href="http://php.net/docs.php%20"&gt;http://php.net/docs.php&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Don't forget to use it whenever you need it. It is well structured and has lot of examples.&lt;br /&gt;
&lt;br /&gt;
PHP main site: &lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.php.net/"&gt;http://www.php.net&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/886761804755686491-7407845869624270802?l=phptunning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phptunning.blogspot.com/feeds/7407845869624270802/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phptunning.blogspot.com/2011/07/for-start-basics-of-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/886761804755686491/posts/default/7407845869624270802?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/886761804755686491/posts/default/7407845869624270802?v=2'/><link rel='alternate' type='text/html' href='http://phptunning.blogspot.com/2011/07/for-start-basics-of-php.html' title='For start, the basics of PHP'/><author><name>Vlado</name><uri>http://www.blogger.com/profile/01966107729029246596</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='04245909818725142467'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;AkMFRnk8eip7ImA9WhdTFEg.&quot;'><id>tag:blogger.com,1999:blog-886761804755686491.post-7373753309015639910</id><published>2009-05-27T22:33:00.000+02:00</published><updated>2011-07-12T10:13:37.772+02:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-07-12T10:13:37.772+02:00</app:edited><title>Php Tunning</title><content type='html'>Welcome to the php tunning blog&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/886761804755686491-7373753309015639910?l=phptunning.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phptunning.blogspot.com/feeds/7373753309015639910/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phptunning.blogspot.com/2009/05/flash-tunning.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/886761804755686491/posts/default/7373753309015639910?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/886761804755686491/posts/default/7373753309015639910?v=2'/><link rel='alternate' type='text/html' href='http://phptunning.blogspot.com/2009/05/flash-tunning.html' title='Php Tunning'/><author><name>Vlado</name><uri>http://www.blogger.com/profile/01966107729029246596</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='04245909818725142467'/></author><thr:total>0</thr:total></entry></feed>