This time we will learn the basics of PHP. PHP (stands for PHP Hypertext Preprocessor rekrusif) is the most popular web scripting today. There is no other way possible at this time, if you want to become a professional web programmer you should learn PHP. But before you know PHP is advisable to know in advance about HTML / XHTML then you just learn the basics of PHP.
To start learn PHP you must first install the web application server as we have discussed previously. Okay straight to the point.
PHP tagThe first thing that became the basis of PHP is the tag. PHP scripts are written as plain text, which begins with the open tag and end with a close tag. PHP scripts can be written in the file itself and can also be inserted in the HTML file. It's just an HTML document that contains the extension to be converted into php.
This is an example of writing an open tag and close tag php:
<?
[Php code written between these tags]
?>
To start learn PHP you must first install the web application server as we have discussed previously. Okay straight to the point.
PHP tagThe first thing that became the basis of PHP is the tag. PHP scripts are written as plain text, which begins with the open tag and end with a close tag. PHP scripts can be written in the file itself and can also be inserted in the HTML file. It's just an HTML document that contains the extension to be converted into php.
This is an example of writing an open tag and close tag php:
<?
[Php code written between these tags]
?>
Learn more
First PHP scripOpen Notepad or another editor app, then type the following codes:
<?
$Name = "Dzulfadhli";
$Age = "25"
echo = "My name is $name. Age my $age years old";
?>
Save the script above with apaajaboleh.php name and save it in the htdocs folder as we have discussed in previous posts. Then the way your browser and type in the address bar alamnat http://localhost/apaajaboleh.php.If your web browser featuring literary "My name Dzulfadhli. Age I'm 25 years old" then you have successfully created the first php script.At least the above script you have to know PHP 3 basic elements, namely:
* Open and close tags (<? .....?>)
* Variable ($name, $age)
* Function (echo = "....")
Most of the tags in PHP is similar to an existing tag in the HTML language, if you are familiar with HTML hopefully be a lot easier.So first introduction to the basics of PHP. hopefully useful!
First PHP scripOpen Notepad or another editor app, then type the following codes:
<?
$Name = "Dzulfadhli";
$Age = "25"
echo = "My name is $name. Age my $age years old";
?>
Save the script above with apaajaboleh.php name and save it in the htdocs folder as we have discussed in previous posts. Then the way your browser and type in the address bar alamnat http://localhost/apaajaboleh.php.If your web browser featuring literary "My name Dzulfadhli. Age I'm 25 years old" then you have successfully created the first php script.At least the above script you have to know PHP 3 basic elements, namely:
* Open and close tags (<? .....?>)
* Variable ($name, $age)
* Function (echo = "....")
Most of the tags in PHP is similar to an existing tag in the HTML language, if you are familiar with HTML hopefully be a lot easier.So first introduction to the basics of PHP. hopefully useful!
No comments:
Post a Comment