note 43863 deleted from function.explode by tomsommer
| From: | tomsommer@php.net | Date: | Tue, 06 Jul 2004 18:24:50 +0000 |
| Subject: | note 43863 deleted from function.explode by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-72784@lists.php.net to get a copy of this message | ||
Note Submitter: jakemcmahon at hotmail dot com
----
explode() is quite a useful function. If on your site you have a refereer thing: Eg: "The last
site you visited was <?php echo $_SERVER['HTTP_SERVER_VARS']; ?>!" Why not
have something a bit more profesional?
<?php
$strReferer = explode(".", $_SERVER['HTTP_REFERER']);
echo "you have just came from" . $strReferer[1];
?>
If the referer was http://google.co.uk/, this would just display
the 'google' part.