The superglobal variables ($_POST, $_GET...)

Variables called superglobal are very important in PHP programming. These so-called superglobal variables are the built-in variables in PHP, each of which having individual sc...

Headers in PHP

Header are used to send a raw HTTP reader.During page upload a header is called before any actual output is sent, either by

Sessions and cookies in PHP

Any data you have stored is forgotten just when the page has been sent to the client and the connection is closed. Tiny bits of information, a web site could store on the client's machine that...

Errors handling in PHP

Error handling functions deal with handling errors triggered by PHP scripts. They allow user to define their own error handling rules, as well as modify the way the errors can be l...

Simple form validation and submitting in PHP

Forms can be validated with JavaScript and

Simple file upload handling in PHP

In PHP there are many ways of handling file uploads. In this chapter we arw giving a simple example of file uploading from

High resolution timing in PHP

High resolution timing is frequently used in PHP to delay, postpone or filter various actions. The example below shows how to do so. Simple example with usleep function in...

Working with shell commands in PHP

Shell commands are another group of functions that carry high importance and frequency in programming with PHP. The example below is showing how to create a folder and change it...

Compression and archiving in PHP

The examples below are showing how to work with ZIP files and compressions in PHP. BZIP Example of working with BZI...

Connections handling in PHP

This chapter breifly explains how PHP handles connections. PHP automatically maintains a connection status. There are four possible states:...