Introduction The referrer page is known as the page which sent you to the current site. For example, if you found this beautiful blog through Google, then your referrer would be Google. It is useful to know the referrer of a visitor when you are a webmaster because it helps you figure out where your [...Read more...]
PHP
Some background info So what’s Gzip? Gzip is a form of compression (think ZIP/RAR files) that compresses files so that you save bandwidth and the page loads faster. It’s very useful for compressing text since there are good compression algorithms for it, whereas images and movies are already compressed. Thus, Gzip is extremely useful for [...Read more...]
Sending emails via PHP is quite the interesting function. You can use it to send yourself an email when a visitor submits something via a contact form, or to notify you of sudden changes in your website. For example, you could design a script on another server to check when your site is down and [...Read more...]
Say you have some kind of contact us form and you want to send your users back to the main page after they’re done submitting the input. How would you do this? What would be the best method? Well, if you’re up for some PHP, the best way would be to use the header redirect [...Read more...]
This tutorial is designed for PHP. Basic Info and Code Ok, this page is about identifying browsers. How do we do that? (Copy the code below) <?php $ua = $_SERVER["HTTP_USER_AGENT"]; // Here’s the fun part – we’re identifying Mac IE if (stristr($ua, “Mac”) && stristr($ua, “MSIE”)) { // Do something here – maybe a redirect? [...Read more...]