|
|
|
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.
|
| Our Recommended Links |
|
|
Contact us at webmaster@galacnet.com for advertising opportunities on GalacNet. |