View Single Post
Old 11-29-2006, 09:08 AM   #29 (permalink)
REßEL
She cries MORE MORE MORE!
 
REßEL's Avatar
 
Join Date: Feb 2004
Location: Apparently I'm a bitch a cunt a fuckhead and a troll. I'm also RIGHT!
Posts: 9,242
Points: 13,851
Send a message via ICQ to REßEL
I also just thought to add for those not familiar with PHP.

PHP is handled "server side". The surfer never sees the php in the page, the surfer needs nothing enabled or installed to view the pages correctly. The server "reads" the page, handles all the PHP commands and outputs only the HTML results to the browser.

View any source code of a php file and you won't see any of the PHP itself.

Do you ever use Meta Refresh or J-ava-S-cript to redirect surfers to another page? STOP! Get in the habit of using a PHP redirect!
which looks like this..
<?php header("Location: http://urlyouwanttoredirectto.com" ?>

Why PHP instead of Meta or J-s? Because both of those rely on the surfer settings! They must have Meta refresh or J-s enabled for the redirect to work! A PHP redirect is done server side and outputs the new url to the surfer whatever their settings are!

I use it to mask ref links and make it easier to swap out links if necessary.
In a blank file I paste <?php header("Location: http://reflinktosponsor.com" ?>
and save it as sponsor-name.php
Then every place on the site that links to that sponsor site is linked to the sponsor-name.php rather than direct to sponsor. The surfer never sees the intermediate page, he goes straight to sponsor as usual.

What this allows is to change the sponsor link easily. Say you want to change it from rev-share to PPS or vice versa. The sponsor closes, or changes their linking structure, or you wanted to change Netpond Cash links to Cash Uncovered links you could change the link in the one php redirect file and all the links using it would redirect to the new URL.

Edited to add: For those that want to see a PHP redirect in action.. Click my Sig!
__________________
I work smarter not harder with the following awesome tools!
Gallery Submitter | Blogs Organizer | Gallery Scraper | Site Organizer | Links Organizer
REßEL is offline   Reply With Quote Send a private message to REßEL