Advertisement
6_2008-2009 Miscellaneous #211122

PHP FOR DUMMIES

PHP FOR DUMMIES This article is for people who are not aware what PHP is , who have not heard of PHP ,This article will refresh you about what PHP is with some of the important highlights . PHP!!! PHP!!!! PHP!!!! WHAT IS IT???? Don’t worry; I am here to tell you, what it is?

AI

Podsumowanie AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Kod źródłowy
original-source
<div align="center">
 <center>
 <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="62%" id="AutoNumber1">
  <tr>
   <td width="100%"><span class="blackBody">
   <font face="Arial" size="2" color="#800080"><strong>What is PHP?</strong></font><p>
   <font face="Arial" size="2">Hi net mates. These days when you surf through 
   some sites, you will find some file extension in the address bar of your 
   browser. Some files extensions like the .htm, .asp, .jsp, .php, and .php3.</font></p>
   <p><font face="Arial" size="2">You will find this extension .php or the 
   .php3 file extension in some of the popular sites too. Let us see that is 
   this file extension, which language this extension refers to. Let us see 
   what the main high lights of these language.</font></p>
   <p><font face="Arial" size="2">Hypertext preprocessor is the exact 
   expansion of PHP, tough it doesn’t, fit to the exact spell, and it is 
   adjusted to the word of mouth, called as PHP. PHP is a web scripting 
   language. Let us see some the basic queries, which we come across php.</font></p>
   <p><font face="Arial" size="2" color="#800080"><strong>Who Wrote PHP?</strong></font></p>
   <p><font face="Arial" size="2">Rasmus wrote PHP. PHP was started off 
   accidentally, Rasmus was designing his web site, and he had planed to put 
   a hit counter for his site. He decided to write a combination of Perl. <br>
   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
   There were many enquires about the script which he used. Likewise, it 
   slowly improved on and won the hearts of many programmers.</font></p>
   <p><font face="Arial" size="2" color="#800080">
   <em style="font-style: normal; font-weight: 700">What type of scripting is 
   PHP client or a server side?</em></font></p>
   <p><font face="Arial" size="2">PHP is a server side scripting language; 
   server side scripting language is one, which has the capability of 
   executing the script on the server and serving the output as a HTML File, 
   server side script has the main advantage of interacting with the 
   databases and to perform all types of server manipulations directly. 
   Server side scripting language is responsible for manipulating the data 
   which is filled in the entire web forms, any where in the net.</font></p>
   <p><font face="Arial" size="2">But this is not the case of a client side 
   script. Some of the client side scripting languages is the JavaScript and 
   VB script, but there are exceptions where, client side script can also be 
   used for server side scripting, which is limited to some extent.</font></p>
   <p><b><font face="Arial" size="2" color="#800080">
   <em style="font-style: normal">Can I use PHP with HTML?</em></font></b></p>
   <p><font face="Arial" size="2">Sure you can very well use HTML with PHP, 
   like the other scripting languages you can do so. It is not a compulsory 
   act for you to use PHP with the HTML. You can very well get the output 
   with PHP alone. But the expected output, which is exhibited by PHP, is not 
   that attractive for display. By attractive, I mean the formatting done by 
   PHP. </font></p>
   <p><font face="Arial" size="2">Lets us take an example. You have a server 
   side interaction with the database, which is used to manipulate and fetch 
   a certain type of data based on the query, which is given out. Now, if you 
   are going to display these data using PHP, which is fetched by PHP. The 
   quality of output like the font face, font coloring and display areas are 
   all disturbed, as well as being painful to locate and place the data. If 
   HTML is used to present these data, the outlook of the data exhibited is 
   gorgeous.</font></p>
   <p><font face="Arial" size="2" color="#800080">
   <em style="font-style: normal; font-weight: 700">Can I Run PHP on the 
   Windows Operating System?</em></font></p>
   <p><font face="Arial" size="2">You can very well run PHP on a windows 
   machine. PHP is a cross platform support language, which means, PHP can 
   run on various platforms like the Linux, Windows etc.&nbsp; Your web servers 
   PWS, IIS, Apache can be configured to work PHP.</font></p>
   <p><font face="Arial" size="2" color="#800080">
   <em style="font-style: normal; font-weight: 700">Is it easy migrating from 
   any other server side scripting languages to PHP?</em></font></p>
   <p><font face="Arial" size="2">If you are aware of programming concepts 
   and the application of the logic, then, you will find it ok to code any 
   programming language if you simply understand the syntax. At the same, 
   other scripting languages and PHP, have virtually the same function 
   methodology. The only thing that matters is your requirement, how you are 
   going to apply the logic and code php to your logic.</font></p>
   <p><font face="Arial" size="2">The main area lies while migrating is the 
   syntax understanding. PHP’s syntax is similar to the C language. People 
   with basic knowledge of C will find it very easy migrating as well as 
   other aspects, an easy task.</font></p>
   <p><font face="Arial" size="2" color="#800080">
   <em style="font-style: normal; font-weight: 700">I am new to programming, 
   is it easy to learn PHP?</em></font></p>
   <p><font face="Arial" size="2">If you are very blind to programming then 
   it is difficult to learn PHP because you may need to learn the programming 
   concepts. This means you require an understanding of the logic, and to be 
   able to troubleshoot the program. If you happen to know at least one 
   programming language, then it is very easy to learn PHP. PHP it is pretty 
   easy compared to other scripting languages.</font></p>
   <p><b><font face="Arial" size="2" color="#800080">
   <em style="font-style: normal">What are the databases that support PHP?</em></font></b></p>
   <p><font face="Arial" size="2">PHP is very much compatible with MYSQL and 
   POSTGRESQL Databases. PHP also can be programmed to interact with any 
   database right from a simple text file to DB2. It is believed that php 
   interacting with the database has the highest performance, unlike the 
   other scripting languages.</font></p>
   <p><font face="Arial" size="2" color="#800080">
   <em style="font-style: normal; font-weight: 700">How fast is PHP compared 
   with other scripting languages?</em></font></p>
   <p><font face="Arial" size="2">PHP is believed to be fast when compared 
   with other programming languages because of execution speed.&nbsp; In the case 
   of large interactions with the database PHP really plays a good role of 
   execution in performing the interaction. Now, today’s major web sites have 
   been migrating to PHP because of the performance.</font></p>
   <p><b><font face="Arial" size="2" color="#800080">
   <em style="font-style: normal">PHP is open source. Will this work 
   properly?</em></font></b></p>
   <p><font face="Arial" size="2">PHP is the only scripting language, which 
   has won the hearts of many web servers, has been moving on enormously 
   day-by-day, The main advantages of the open source is that, if there is a 
   problem that particular problem is shared my millions of programmers 
   across the world. But in the case of a licensed version scripting 
   languages, it is very limited to a set of a small community.</font></p>
   <p><font face="Arial" size="2">As innovative ideas are studied from all 
   the programmers across the world, new ideas are implemented then and there 
   making the language strong.</font></p>
   <p><font face="Arial" size="2">There is no problem in using PHP, which is
   <strong>open source</strong>.</font></p>
   <p><font face="Arial" size="2">I shall conclude by saying that, all the 
   scripting languages have its own merits and demerits. So, it is up to you 
   to decide for a partial migration or a full migration.<br>
   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
   <br>
   <font color="#800080"><b><em style="font-style: normal">What are the main 
   Advantages of PHP?</em></b></font></font></p>
   <p><font face="Arial" size="2">Let us see some of the important advantages 
   of PHP. There are a lot of advantages of PHP. When it is compared with 
   other scripting languages, some of the important highlights are as 
   follows.</font></p>
   <p><font face="Arial" size="2" color="#800080"><strong>Speed</strong></font></p>
   <p><font face="Arial" size="2">PHP is considered to be the fastest, as 
   stated previously, when compared with other programming languages. You can 
   really feel the speed when you are going to, implement live over the web.
   </font></p>
   <p><font face="Arial" size="2">Normally when you try to connect a database 
   and fetch certain data, it usually takes time to connect the database, 
   execute the statement, and get the data across. When these operations are 
   performed by PHP it is really faster when compared with other types of 
   scripting languages. Not only for the speed when connecting the database 
   but also while using over other important applications. </font></p>
   <p><font face="Arial" size="2">Because of its high performance of speed, 
   PHP is being used for some of the important administrations like the 
   server administration over the web, mail functionalities.</font></p>
   <p><font face="Arial" size="2" color="#800080"><strong>Open Source</strong></font></p>
   <p><font face="Arial" size="2">PHP is open source, open source is one 
   where the user is given a free license to remodel or recode PHP, according 
   to their wish. You might wonder if you can I do these things without 
   source code. Yes would be the answer. Source code is shipped with PHP. It 
   is open source remember.</font></p>
   <p><font face="Arial" size="2" color="#800080"><strong>Multi Platform</strong></font></p>
   <p><font face="Arial" size="2">PHP supports various platforms, which mean 
   PHP can be installed on almost every operating system, like the window-x, 
   Linux, etc. You may choose the appropriate version and follow the 
   instructions accordingly given in the Manual.</font></p>
   <p><font face="Arial" size="2" color="#800080"><strong>Easy Syntax</strong></font></p>
   <p><font face="Arial" size="2">PHP syntax is quite easy to code, all the 
   syntax are similar to the C language syntax, If you are very new to the 
   programming environment then it will be a bit difficult task for you to 
   code the PHP.</font></p>
   <p><font face="Arial" size="2" color="#800080">
   <em style="font-style: normal; font-weight: 700">What are the main 
   disadvantages of PHP?</em></font></p>
   <p><font face="Arial" size="2">Every language or scripting language has 
   its own advantages or the disadvantages. Likewise, PHP has some of its own 
   disadvantages.</font></p>
   <p><font face="Arial" size="2">But these disadvantages can be overcome 
   using advantage methods.</font></p>
   <p><font face="Arial" size="2">Some people say it is a direct 
   disadvantage, while some people say an indirect disadvantage.</font></p>
   <p><font face="Arial" size="2">Disadvantage indirectly means some of the 
   aspects and functionalities in PHP, which are not being able to complete 
   using the direct functionality. This particular disadvantage can be 
   overcome using an advantage method. </font></p>
   <p><font face="Arial" size="2">Let us take a simple example,&nbsp;say 
   redirection. Writing a piece of code from the client side or the server 
   side - in some of the scripting languages there is a single task to 
   achieve this - a single function will do so. But in the case of PHP it is 
   done indirectly.</font></p>
   <p><font face="Arial" size="2">One more disadvantage is the Error 
   Handling. It is believed that PHP has very poor handling errors qualities. 
   Even this disadvantage can be over come using a feasible advantage 
   solution.</font></p>
   <p><font face="Arial" size="2">These are some of the disadvantages. Note 
   again, that this disadvantage can be overcome by using the advantage 
   solution.</font></p>
   <p><font face="Arial" size="2">It is up to you to decide, whether to 
   migrate or learn PHP.</font></p>
   <p><font face="Arial" size="2">PHP is great in the terms of performance of 
   speed, which is the main factor, which people expect these days.</font></p>
   <p><font face="Arial" size="2">Check out my next article soon.</font></p>
   </span>
   <p>&nbsp;</td>
  </tr>
  <tr>
   <td width="100%"><b><font color="#FF0000" face="Arial">Article By</font></b></td>
  </tr>
  <tr>
   <td width="100%"><b><font color="#0000FF" face="Arial">G.Ajaykumar</font></b></td>
  </tr>
  <tr>
   <td width="100%"><b><font color="#0000FF" face="Arial">Jr.Systems Analyst</font></b></td>
  </tr>
  <tr>
   <td width="100%"><b><font color="#0000FF" face="Arial">Ferntech Systems 
   Pvt Ltd</font></b></td>
  </tr>
  <tr>
   <td width="100%">&nbsp;</td>
  </tr>
 </table>
 </center>
</div>
Oryginalne komentarze (3)
Odzyskane z Wayback Machine