Learning PHP, create PHP, how to create a website, learning HTML, MySQL & learn learning specific computer beginners, free, easy & complete with PHP tutorial, HTML tutorial, MySQL, how to create a unique website and online computer Prothelord easily understandable from basic to advanced , plus tips on studying English and light articles of interest to you can be here.
My name Prothelord, and ready to become your partner to learn PHP, how to create a website, MySQL, Web Design and languages online.
If you're just starting to learn how to create a website, please review the tutorial available here begins with learning HTML then learn PHP and MySQL the last study, in addition you can also learn the computer, learn computer networking and Internet business even here.
Sunday, October 3, 2010
Lesson One PHP
Wednesday, July 14, 2010
How to Writing PHP Scripts
Writing PHP scripts always begin with a "smaller (<)" and ending with a "greater (>)" and in writing the PHP script itself, there are four different ways, namely:
<?
PHP Scripts
?>
<?php
PHP Scripts
?>
<script Language="php">
PHP Scripts
</ SCRIPT>
<%
PHP Scripts
%>
Of the four ways before, you can choose which one to use in writing the PHP script but more often used is the way the first and second. In addition, the note is at the end of every PHP script should end with a "semicolon (;)".
Here is an example of writing from the PHP script:
<?php
echo ("Congratulations Learning PHP here");
?>
Introduction to PHP
Before we discuss PHP, there is one term that we should know beforehand, ie a server side scripting, because PHP is one type of programming languages including scripting of whom the server type. Namely a set of scripts that are processed on the server side, the intention is that there are scripts PHP scripts in a program will be processed on the server computer.
Examples of the programming language that is included in the server side scripting are PHP, ASP (Active Server Pages), Cold Fusion or Perl. And we will learn this time is the programming language PHP.
PHP was created by Rasmus Lerford, the birth of this PHP began in 1994 when Rasmus made a number of Perl scripts to watch anyone who saw the list of his memoirs. Script script is then packed into a tool called "Personal Home Page". From this package the forerunner to the creation of PHP. In 1995, Rasmus PHP/F1 creating two versions. And this version of structured programming can paste the code in the HTML tags and also can communicate with the database.
PHP stands for PHP Hypertext Preprocessor, is a scripting programming language that is placed and processed on the server. The results will be sent to the client that is places where the users using the Browser.
PHP is designed specifically for the formation of dynamic WEB. This means that PHP can form a view according to the latest request. For example you display the contents of the database to web pages.
Advantages of PHP than other programming languages including:
Programming Language PHP is a scripting language that does not do a compilation on its use.
Web Server that supports PHP can be found where the extent of starting the IIS to Apache, with a relatively simple configuration. In a side development easier, because of the many mailing lists and developer who is ready to assist in its development.
When viewed in the conceptualisation, scripting language PHP is the easiest because of the many references available.
PHP is a programming language that is open source means that PHP can be used in various machine operating systems like Linux, Unix, windows, etc. and can be done in run time through the console. Also, PHP can run commands from the system.
Sunday, January 17, 2010
Cheap VPS Hosting
Wednesday, October 21, 2009
Filter text in PHP with str_replace
This trick is usually used to filter out comment or message to be displayed normally in the guest book form. For example words - words that included "bad php" after the submit it displayed "good php". Create a still hooked to the web 1.0 I'll try to share what little I know. Perhaps this is one of the few tricks that can be used to filter out comment in php. Let us use the hassle of congenital str_replace function of php itself'll not bother to make their own functions. to consider the function is as follows str_repalce str_replace (the first parameter, second parameter, the third parameter) * The first parameter: this is a word or phrase that will be filtered * The second parameter: this is a substitute word for the first part * The third parameter: this is a word or phrase that will be filtered
Read More “Filter text in PHP with str_replace” »»Saturday, September 26, 2009
Fun Play with golf
I did not agolf professional players, but I really like the golf course. I need lots of practice to become the best Golfer. To playing golf, we must have any golf equipment. You need the stick, golf ball, and the golf scope. Thirdly it is an important component in The Game of Golf. I want to know more about golf, as well as you. In Germany, all available. Cities in Germany a lot of golf courses. For that you must not hesitate to go there, to spend a long vacation with family and playing golf. To know about golf, you have to practice and learn. There may be many a sites in the Internet about Golf but if you want to know about golfkurs platzreife, golfkurs-platzreife.de is the best place for you. On this site are all available all the needs and your knowledge about golf. Of course learn by doing "make you better class. Prepare yourself to go to enjoy it all. Before leaving prepare your golf equipment. If you are new in golf, Mizuno becomes a good choice for you to take it to the Germans. There do not forget to visit the beautiful lakes and cool. Urlaub Chiemsee is a very good choice for your vacation. Many families, couples and single travelers each year choose to spend their holidays at Lake Chiemsee. A collection of water and wind blowing into your body certainly remarkable effect to your health. Prepare yourself to go play golf in Germany, this course is very enjoyable.
Read More “Fun Play with golf” »»Saturday, October 25, 2008
Self-Referencing
In the Web application often we need self referencing URL to refer path current Script. Marginally this implementation step can through 2 approach, namely apply superglobal $_ SERVER and function getenv().
echo $_SERVER['PHP_SELF']; echo $_SERVER['SCRIPT_NAME']; echo $_SERVER['REQUEST_URL'] echo getenv['SCRIPT_NAME'] echo getenv['REQUEST_URL']Different with other element, REQUEST_URL will return query string (if founded. For applied inveterate approach is element PHP_SELF. Read More “Self-Referencing” »»
Thursday, October 16, 2008
array base technique
$arr1 = array(‘a’,’b’,’c’); print_r($arr1); $arr2[] = ‘a’; $arr2[] = ‘b’; $arr2[] = ‘c’; Print_r($arr2);Create array associative you must do that with same way. But in here you must specified of base key.
$arr3 = array(‘a’ => ‘A’, ‘b’ => ‘B’, ‘c’ => ‘C’); print_r($arr3); $arr4[‘a’] = ‘A’; $arr4[‘b’] = ‘B’; $arr4[‘c’] = ‘C’; print_r($arr4);
Manipulation String
- single quotation mark
- double quotation mark
- syntax here document (heredoc)
$strl = ‘America’; echo ‘Halo $strl’; echo “Halo $strl”; $str2 = <<Sintaks heredoc EOQ; Echo $str2;
Class
Class is one of fundamental element OOP (Object Oriented Programming). Class can be illustrated as blueprint or prototype what is applied to create object. Definition Class Class name must be descriptive and better always started with block letters. Name of class better also express the position hierarchy and use underscore as hierarchy winnow.
Form FormUpload //For example file location Form/Db/validator.php Form_Db_validatorClass is defined use apply keyword class who’s followed name of class. Definition of class consist two component, that is declaration class and body class. Declaration class is a first row in class. And minimum defined name class. Body defined after name class and between confine streamer { }
//declaration class Class Form { //body class }Read More “Class” »»
Monday, October 13, 2008
Consistency
Consistency often related to writing standard code program. Of course well founded because writing of consistent code make code program more easily to read and comprehended.. If variable is applied for purpose of similar, better give similar name too. For example, if variable $sum is applied to express an amounts, hence you must to always wear the name. That’s mean don't give different name for purpose of similar, for example $sum, $sumer, $amount. For usage in one block. You can declaration variable with same prefix, for example $sum_data, $sum_max, $sum_min. Though not easy to consistency implementation, we must cope for minimization mistaken of naming.
Read More “Consistency” »»Sunday, October 12, 2008
Program Code Format
// not like it If ($letter == ‘a’ || $letter == ‘I’ || $letter == ‘u’ || $letter == ‘e’ || $ letter == ‘o’) {$vocal = true;} // like it If ($letter == ‘a’ || $letter == ‘I’ || $letter == ‘u’ || $letter == ‘e’ || $letter == ‘o’) { $vocal = true; }In addition, better always apply space for neatening program
$name = ‘php’; $category = ‘server-side’; $url = ‘http://www.php.net/’;
Friday, October 10, 2008
Standard coding
Every programming language always give standards rule for made reference programmer. This thing for created program are consistence and uniform. The example is standard name. In programming, a name is applied to relate identity which for declaration. Related/relevant this matter, there are some base order which truly hardly required to produce a program more interesting. Variable name better use a lower case. If the name consist of some words, disjointed with under line (underscore). For example $name or $name_user. Give name of Constanta is suggested to follow order variable except using all block letters. For Example MAX MAX_DATA or SUM_DATA. Name of function better also relate at naming of variable and hardly suggested that to express a verb or action, for example get_data(), set_data(), or print(data).
Read More “Standard coding” »»Thursday, October 9, 2008
What is PHP ?
PHP? Maybe many more question in friends of hearing word PHP. PHP is a script which one with HTML dan stay at server (server side HTML embedded scripting). With this PHP You can create immeasurable application base on the web, start from simple web page until the application of complicated requiring connection to database. Until now, many databases which have been supported by PHP and possibilities will continuously increase. the database is :
- dBase
- DBM
- FilePro
- mSQL
- MySQL
- ODBC
- Oracle
- Postgres
- Sybase
- Velocis