Show: All tutorials Toxiclab tutorials
PHP While Loop Statement
16.03.2013 20:42 in Php | 9 comments | source: Jeremy's Web Development Blog | 2988 clicks
Suppose you want to calculate gross salaries of 20 different persons or take a list of maximum and minimum temperatures of a certain month or a year, the while loop is ideal to solve these types of cases.
The while statement is simple, it executes the statement(s) repeatedly as long as the condition is true. The condition is checked every time at the beginning of the loop.
Install PHP on Linux
13.03.2013 12:32 in Php | 6 comments | source: Jeremy's Web Development Blog | 2788 clicks
If you are running Ubuntu, add deb http://security.ubuntu.com/ubuntupool/main/p/php5/ hardy-security main in your /etc/apt/sources.list
file using any text editor.
Alternatively you can follow these steps to find and download PHP for Ubuntu :
To obtain php installer for ubuntu Linux, go the the packages.ubuntu.com.
Scroll down and find Search package directories.
PHP : $_SERVER
05.12.2012 12:33 in Php | 5 comments | source: Jeremy's Web Development Blog | 2943 clicks
$_SERVER has following basic properties:
Set by web server.Directly related to the runtime environment of the current php script.It does the same job as $HTTP_SERVER_VARS used to do in previous versions of PHP
PHP error handling
23.10.2012 13:02 in Php | 5 comments | source: Jeremy's Web Development Blog | 2918 clicks
PHP has a number of functions for handling as well as reporting errors. Besides, you can define your own way of handling and reporting errors. In this and subsequent pages we are going to discuss about installation, runtime configuration, predefined constants and functions relating to PHP error handling and reporting.
23.10.2012 13:01 in Php | 169 comments | source: Jeremy's Web Development Blog | 3691 clicks
Variable is a symbol or name that stands for a value. Variables are used for storing values such as numeric values, characters, character strings, or memory addresses so that they can be used in any part of the program.
PHP for loop
15.10.2012 20:27 in Php | 5 comments | source: Jeremy's Web Development Blog | 2609 clicks
The PHP for loop allows the user to put all the loop-related statements (i.e. INITIALIZER; CONDITION; INCREMENTOR or DECREMENTOR) in one place. The structure is similar to C language.