Home
Credits
Affliates
Link Exchange

HTMLshaman
PHPshaman
LINUXshaman

Helpful Links
Web Design Images
Backgrounds
Icon Sets
GIF Images


Extras : Global Values

In PHP even before you set anything, it has already registered some global values that you can use. these things include the ability to display whats the browser type, IP of client, URL of the site the user is on etc etc.

These can be fairly helpful when you need to gather information to process your data.

Below are some commonly used variables:

$HTTP_USER_AGENT : Name and verison of client
$REMOTE_ADDR : IP of client
$REQUEST_METHOD : Tells you if it was a GET or POST
$QUERY_STRING : displays the GET request
$REQUEST_URI : full address of the requested link
$HTTP_REFERER : address of page when a request is made
$_GET['num'] : gets VALUE from the URL the value file.php?num=VALUE
below is an example of how this can be used :
The email you just sent was detected as SPAM/SCAM.<img src="mod.gif"><br>
Please note that under our terms and conditions we do not allow such activities<br>
<br>
Your <b>IP</b> has been logged and emailed to the Site Administrator.<br>
<br>
<?php
print "<b>IP</b> logged at $REMOTE_ADDR<br>";
print "<b>Additional Information Logged</b><br> $HTTP_USER_AGENT <br>";
?>
This account will also be suspended shortly.<br>
<br>

From the above section we can see that it is used to project the user's IP and also what he used to access the particular website.

This was used in our gSecure module for Hivemail to alert the user that he was sending SPAM emails and with this information already marked and mailed to the administrator.
gSecure can be accessed at gsecure.gvale.com for further read up on this module.






Basics
Introduction
Compilation for Apache

Language Intro
The Basics
Structuring
Script Flow
Functions
Arrays
Objects

Extras
Global values

Simple Scripts
MySQL Query
File Upload
List Contents






Disclaimer:
Contents on this site is provided for educational purposes and will not be distributing source codes from any major commercial reference.
Partial code may be used to provide better understanding of how the program works or functions to illustrate to the reader more clearly.
Other programs that are provided freely on the internet may be placed as a quick solution to the user's needs taking in consideration that it is not altered in any way.

Our Recommended Links
prepaid phone card
Online Casino
Smiley Central
Ventrilo Servers
Counter-Strike Servers
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Advertise Here
phone card

Advertise Here
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Hollywood Lyrics
Resident Evil
Contact us at webmaster@galacnet.com for advertising opportunities on GalacNet.