I set up an add on an .htm page using the instructions in this thread. The coop ad displays on the left of the page & I'd like to center it. A little help?
This is what I use to not only center 5 ads but include space between: <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('ad_network.php'); echo '<center>'.$ad_network[0].'  '.$ad_network[1].'  '.$ad_network[2].'  '.$ad_network[3].'  '.$ad_network[4].'</center>'; ?> Code (markup): Cheers
My brain's a little slow today...everytime I've tried centering the single ad by modifying the passthru.php I end up with an error message. Could some kind soul post the exact code they would use to accomplish this and help a GuyFromChicago out? (I'm good at following instructions and that's about it )
passthru.php <?php if (!function_exists('file_get_contents')) { function file_get_contents($url) { $handle = fopen($url, 'r'); $string = fread($handle, 4096000); fclose($handle); return $string; } } include ('ad_network.php'); echo preg_replace ("/<\/body>/i", '<center>' . $ad_network[0]. ' - ' . $ad_network[1]. ' - ' . $ad_network[2] . ' - ' . $ad_network[3] . ' - ' . $ad_network[4] . '</center></body>', file_get_contents(str_replace ('../', '', $_REQUEST['file']))); ?>
I meant this way but still does the same job <center><?php if (!function_exists('file_get_contents')) { function file_get_contents($url) { $handle = fopen($url, 'r'); $string = fread($handle, 4096000); fclose($handle); return $string; } } include ('ad_network.php'); echo preg_replace ("/<\/body>/i", '' . $ad_network[0]. ' - ' . $ad_network[1]. ' - ' . $ad_network[2] . ' - ' . $ad_network[3] . ' - ' . $ad_network[4] . '</body>', file_get_contents(str_replace ('../', '', $_REQUEST['file']))); ?> </center>