Another addition to this tutorial...
On each one of those ad pages, you can create Random sales texts, so each time a surfer pops into your page, he will be seeing different Sales Text or Banners, randomly.
Works pretty good, and its not hard to do
Here is how its done:
PHP Code:
<?
$link1='http://www.LINK-TO-SPONSOR1.com/';
$text11='Absolute Porn Recommends you To Click Here!';
$text12='You Better Click here Now Or Your Penis Will Fall!';
$text13='Get Instant Access To SITE NAME!';
$link2='http://www.LINK-TO-SPONSOR2.com/';
$text21='Absolute Porn Recommends you To Click Here!';
$text22='You Better Click here Now Or Your Penis Will Fall!';
$text23='Get Instant Access To SITE NAME!';
$link3='http://www.LINK-TO-SPONSOR3.com/';
$text31='Absolute Porn Recommends you To Click Here!';
$text32='You Better Click here Now Or Your Penis Will Fall!';
$text33='Get Instant Access To SITE NAME!';
$link4='http://www.LINK-TO-SPONSOR4.com/';
$text41='Absolute Porn Recommends you To Click Here!';
$text42='You Better Click here Now Or Your Penis Will Fall!';
$text43='Get Instant Access To SITE NAME!';
$link5='http://www.LINK-TO-SPONSOR5.com/';
$text51='Absolute Porn Recommends you To Click Here!';
$text52='You Better Click here Now Or Your Penis Will Fall!';
$text53='Get Instant Access To SITE NAME!';
##### Don't Touch From Now!
$control='';
$i=0;while($i<1){$i++;
$random_link = (rand(1, 5));
$random_text = (rand(1, 3));
$control_exp=$random_link.'-';
$control=$random_link.'-'.$control;
$control_true = strpos($control, $control_exp, 2);
while($control_true<>'0'){
$random_link = (rand(1, 5));
$random_text = (rand(1, 3));
$control_exp=$random_link.'-';
$control=$random_link.'-'.$control;
$control_true = strpos($control, $control_exp, 2);}
$link='link'.$random_link;
$text='text'.$random_link.$random_text;
$text=$$text;$link=$$link;
##### Output!
echo"<a href='$link'>$text</a>";
}
?>
NOTE: Make sure you save it as ad.
php
Then from Rebel's Post, on step 9:
Quote:
|
Originally Posted by REßEL
|
Should look like:
9: Open your index.php file and paste the following between the body tags.
<?php include("header.html"
; ?>
<?php include("ad.php"
; ?>
<?php include("navigation.html"
; ?>
<?php include("ad.php"
; ?>
<?php include("links.html"
; ?>
<?php include("ad.php"
; ?>
<?php include("footer.html"
; ?>
* I haven't tested it yet, just coded it, if you use it and find any problems, PM me.*