Mga Pahina

Linggo, Enero 23, 2011

What is Php programming?


PHP: Hypertext Preprocessor is a widely used, general-purpose scripting language that was originally designed for web development to produce dynamic web pages. For this purpose, PHP code is embedded into the HTML source document and interpreted by a web server with a PHP processor module, which generates the web page document. As a general-purpose programming language,
1.) The Basic Knowledge: - The first you need to understand , before you begin in starting php that you know the programming in HTML.
You can switch it to PHP and html coding that write the same document file. You can even run both php and html file.

2.) Tools: - when creating php pages you use the same program you use to create your html pages. Any plain text editor will do.
You also need to used FTP (File Transfer Protocol) from your computer to web hosting. Or maybe used your local panel for your own hosting page

3.) The Basic: - Now you can finally get started in learning PHP! The first thing you should read is our basic php tutorial.
This will through creating your first file by using variables, basic math , and basic if else statement. Definitely you'll used a form logic.

4.) Learning Loops - Once you have mastered these skill, its time to learn about loops. Loops repeat the same actions over and over again until
a condition is met. There are several different types of loops which are explained in our learning loops tutorial.
E.g. (* for(i=0; i<10; i++), while(i<5), do{}while *)

5.) Php Function - Finally you can learn to write your own custom function - From here the sky is the limit with a solid knowledge of these
Php basic , adding php function to your code when you need them easily.

Supports in:
  • PHP stands for PHP: Hypertext Preprocessor
  • PHP is a server-side scripting language, like ASP
  • PHP scripts are executed on the server
  • PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.)
  • PHP is an open source software
  • PHP is free to download and use
Code:
<?php ?> - an open and close php extension
echo - > usually printed or executable file data
Here are sample syntax:
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>PHP Test</title>
  </head>
  <body>
  <?php
  echo 'Hello World';
  /* echo("Hello World"); works as well, although echo isn't a
  function, but a language construct. In some cases, such
  as when multiple parameters are passed to echo, parameters
  cannot be enclosed in parentheses. */
  ?>
  </body>
</html>

As you can see it has no more to create an simple code like HTML:

Reference see more: 

2 komento:

  1. Hello,
    Nice blog i like it
    Why to hire web developer? For customized web-development solutions, an individual need to hire programmer from a web development company depending upon the business requirement. But,

    TumugonBurahin
  2. When blogger starts, ...blogger take there sense to blog and get an idea to other website. Meaning its wonderful to be a blogger. :)

    TumugonBurahin