View Full Version : Problem showing 2 ads
webvivre
Dec 14th 2004, 3:02 am
Have changed the code to:
<?php
ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
include ('../ad_network.php');
echo $ad_network[0],$ad_network[1];
?>
But only one advert showing. What have I done wrong?
Foxy
Dec 14th 2004, 3:11 am
This is how I have done it from the beginning:
<?php
ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
include ('ad_network.php');
echo $ad_network[0];
?> |
<?php
ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
include ('ad_network.php');
echo $ad_network[1];
?> |
<?php
ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
include ('ad_network.php');
echo $ad_network[2];
?> |
<?php
ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
include ('ad_network.php');
echo $ad_network[3];
?> |
<?php
ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
include ('ad_network.php');
echo $ad_network[4];
?>
Which puts a pipe in between as well
webvivre
Dec 14th 2004, 3:27 am
Ok - thanks
T0PS3O
Dec 14th 2004, 3:31 am
Not the most beautiful way Foxy did it but it works...
My code to show 5 in PHP:
ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
include ('ad_network.php');
echo "<p>Some other internet browsing ideas:<br>";
echo ' '.$ad_network[0].' / '.$ad_network[1].' / '.$ad_network[2].' / '.$ad_network[3].' / '.$ad_network[4].'</p>';
With slashes bewteen them.
Should work including just once if you use the latest code.
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.