Windows registry - Song Lyrics - Debt Help - Credit Reports - Jewish Israel

PDA

View Full Version : strange script error?


leeds1
Jan 13th 2005, 4:04 am
Hi

I run a .shtml site with php includes

In one of the php includes I want to place the ads

If I place the code:

<?php
ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
include ($_SERVER['DOCUMENT_ROOT'].'/ad_network.php');
echo $ad_network[0];
?>

It brings up 2 link ads but the following error message before showing the ads

Warning: ini_set(): Cannot change zlib.output_compression - headers already sent in /home/mydomain/public_html/ad_network.php on line 78


Any ideas ?

leeds1
Jan 13th 2005, 5:51 am
I took these two lines out of ad_network.php at the end:

ini_set ('zlib.output_compression', 0);
echo end ($ad_network);


It works fine

Is this OK Shaun ?

Because the echo end ($ad_network); was also producing a sixth link before the main links were shown ?

digitalpoint
Jan 13th 2005, 8:51 am
Yeah, it's fine. Probably means your shtml setup wasn't using .shtml extensions.