Create a website RSS feed

PHP Variables Of Environment

PHP variables of environment

Last update on: 09-24-2008
The easiest way to understand this variables is to write the following code and run it in your browser.
<?php
phpinfo();
?>
In the result you will have many details about these famous variables, for example:
$_SERVER["HTTP_HOST"] //display the host, it means the name of your webspace.
$_SERVER["HTTP_REFERER"] //will display where your visitor came from.
$_SERVER["DOCUMENT_ROOT"] // Your root folder in your server
$_SERVER["QUERY_STRING"] //the rest of your URL, for example page.php?id=12 , will display id=12
$_SERVER["REQUEST_METHOD"] //the method used, GET ,POST , to verify the variables came from a form.
I am not going to talk about these variables, I advise you to make a phpinfo, you will find what you need.
To your keyboards and start typing and testing.

PHP and MySQL's lessons:

Introduction To PHP
Get Started With PHP
PHP Variables
PHP Variables Of Environment
PHP Conditions
PHP Looping
PHP Cookies
PHP Working With Dates
PHP Working With Arrays
PHP Working With Files
PHP Play With Strings
PHP And Forms
Send Emails With PHP
The Include Statement
Get Started With MySQL
MySQL Update And Delete
The WHERE Clause
MySQL Functions
Guestbook Script
Websites Directory Script
Multiple Pages With PHP
Create Your Forum With Php

Banner HomeServices Contact |  ©2009 http://www.iteachweb.net/