Turn Desktop View Off
by Dinesh Thakur Category: PHP (Hypertext Preprocessor)

Cookies are small files that can be written by a PHP script or other languages, such as JavaScript, on the visitor's computer. The cookie mechanism was invented by Netscape in the bearing purposes to some HTTP protocol weaknesses but also to extend the possibilities of relationship between the client and the website. Their function is storage, for a given period, of information relating to the user (his nickname, his last login date, age, preferences ...).



 
by Dinesh Thakur Category: PHP (Hypertext Preprocessor)

That says "dynamic website" generally called "forms" and therefore treatment of these. PHP was invented especially for this type of task and that is what we will discuss in this new tutorial. We will learn to use the forms via the superglobal arrays $ _GET and $ _POST. We will also determine the difference in the use of each of them.

 
by Dinesh Thakur Category: PHP (Hypertext Preprocessor)

As in most programming languages, it is possible to create your own PHP functions that complement the native functions. This allows performing particular operations that are redundant in the application, and solve a problem by breaking it into several small problems and solutions.

 
by Dinesh Thakur Category: PHP (Hypertext Preprocessor)

This tutorial follows the one on conditional statements. The loops are a trivial principle of computing that any developer must master. They are, too, some of the control structures. PHP 4 into account, each with its specific characteristics: for (), while (), do-while () and foreach ().

 
by Dinesh Thakur Category: PHP (Hypertext Preprocessor)

This chapter presents two important principles to assimilate: the condititions and loops. This first concept is especially important since it allows to perform a series of actions depending on the conditions being tested. As for the second, it allows to repeat N times a series of actions, and in very short time (at human scale). The advantage of the arrival of the computer is to make life easier for users performing tasks that they can not fulfill. If you ask a person to count from 0 up to 1000, it will take several minutes while a computer will process this transaction in milliseconds (or even a few nanoseconds as its computing power). Then immediately understand the benefits of computing.



 
by Dinesh Thakur Category: PHP (Hypertext Preprocessor)

There are 12 types of operators in PHP. We will review them using summary tables. Let's start by arithmetic operators.

 
by Dinesh Thakur Category: PHP (Hypertext Preprocessor)

PHP provides structured data types that are more commonly called "tables". What do they do exactly? How do we handle?



 
by Dinesh Thakur Category: PHP (Hypertext Preprocessor)

Among the most important concepts of the programming is the concept of variable. Like any language, PHP handles data. For a dynamic site, these data are variables. In addition, they may be of different types, such as text string, as you have used the echo statement in the form of whole or decimal numbers or as true or false boolean values (TRUE or FALSE). These basic types are the most used, but there are others who may be compounds types, such as arrays and objects, or specific types, as resource or NULL. . We will see that the variable part of the mechanisms which make a dynamic application. Let's get into the thick of it.

 
by Dinesh Thakur Category: PHP (Hypertext Preprocessor)

In programming, PHP allows you to define constants, it is often necessary to define data structures whose value must not change during program execution. These data structures are typically what is known constants. The most famous mathematical constants is for instance the PI number whose value is approximately 3.1415926535898. Note that PHP natively integrates the M_PI constant. This can then be used for any calculation of circumference.

 
by Dinesh Thakur Category: PHP (Hypertext Preprocessor)

Comments are only intended for the programmer. They will not be displayed or executed. They identify as part of the program without interfering in the program. Comments are among the trivial elements in the success of a program; and this is why it is important to use them with intelligence.

 
by Dinesh Thakur Category: PHP (Hypertext Preprocessor)

As you all know, any PHP script must be surrounded by specific tags. These reserves allow the interpreter to know where in the file is PHP code to execute. On ecomputernotes.com, all presented scripts use the <? Php and?>; and it is not by chance ...

 
by Dinesh Thakur Category: PHP (Hypertext Preprocessor)

In previous tutorials on working environments, we have shown that PHP is a dynamic scripting language interpreted and precompiled server side. It is now for us to achieve our first programs and run them on the web server (local or remote).

 
by Dinesh Thakur Category: PHP (Hypertext Preprocessor)

In order to work with PHP, we must ensure that the prerequisites necessary for the implementation of programs. In the development context of web  applications, a web server with PHP is mandatory. The MAMP software (short for Macintosh, Apache, MySQL and PHP) will launch a local web server on a machine  running on the Mac OS X. It is a software for brand users with apple and which contains the following free components: Apache (server daemon), PHP5, MySQL  (DBMS, SQLite (DBMS), and PHPMyAdmin SQLiteManage (administration tools BDD).



 
by Dinesh Thakur Category: PHP (Hypertext Preprocessor)

License

PHP is first an interpreted scripting language (actually precompiled opcodes), free, open source and distributed under a license authorizing the modification and redistribution.

 
by Dinesh Thakur Category: PHP (Hypertext Preprocessor)

PHP was invented by Rasmus Lerdorf in 1994 for his own use (posting his resume in this case). Formerly abbreviation for Personal Home Page now become Hypertext Preprocessor, PHP is becoming a standard in the world of web programming with its performance, reliability, flexibility and speed.

 

Page 2 of 2



About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.