Debt Consolidation - Debt Consolidation - Myspace Images - Gavin Newsom - High Paying Adsense List

PDA

View Full Version : Problem With Setting Up


Trieste
Oct 14th 2004, 11:13 am
Hi,

I am new and I hope you can help me. I have a site which uses ssi but uses regular .html extensions using .htaccess.

I am unable to run the ads using the instructions for .shtml pages. They just don't display. Oddly, if I use the instructions for php pages, the ads do display but then my server side include content does not load.

Any suggestions?

Thanks in advance

digitalpoint
Oct 14th 2004, 11:42 am
In the ad_network.php file, towards the end of it there should be a reference to .shtml file extensions. Since you are using SSI with .html, try changing it from .shtml to .html and see if that works.

Trieste
Oct 14th 2004, 3:42 pm
Thanks for the quick reply and the suggestion. Unfortunately it didnt help.

I am not sure if this would help, but this is the .htaccess I use. Maybe this is where I am going wrong.


Options Indexes FollowSymLinks Includes

AddType application/x-httpd-cgi .cgi

AddType text/x-server-parsed-html .html

AddType text/x-server-parsed-html .htm

AddType application/x-httpd-php .php .htm .html


If there is anything else you can suggest I would really appreciate it.

digitalpoint
Oct 14th 2004, 9:24 pm
Try changing this:

if (substr ($_SERVER['DOCUMENT_NAME'], -6) == '.shtml') {
ini_set ('zlib.output_compression', 0);
echo end ($ad_network);
}

to this:

echo end ($ad_network);

And do the normal SSI include of the ad_network.php file.