I am trying to add the co-op to a new site of mine. I am not getting any errors, but I can't get the ads to show up. I'm pretty sure it is a problem with the htaccess. I have already tried several different suggestions from some other threads. This is what I have in htaccess. Any help would be greatly appreciated.
Yea. right now it shows: <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('ABSOLUTEURL/ad_network_248.php'); echo $ad_network; ?> I've tried using just ad_network_248.php and using an absolute url...
It needs to be an absolute server path, not URL... It does seem like a parsing problem though. What are the file extensions on the pages you are trying to instal the network on?
HTML for most of them but I though adding "AddType application/x-httpd-php .php .htm .html" would take of of that... How would I figure out the absolute server path?
This is so frustrating. Would I also need to add an absolute server path the link to the txt file in ad_network_248.php ?? Example: $ad_file = '/home/webdevsi/public_html/adNet.txt';
You can try, but It honestly looks like a php parsing issue if the served pages still contain raw php...
oh, I see what you mean. So it must be something in the htaccess that is messing something up I guess...
I don't know if this helps, but this is the code that calls the footer from a directory.php file.... $tpl->assign(array( SNAME => $pagetitle, CAT_HEADER => $cat_row["header"], CAT_FOOTER => $cat_row["footer"], META => $cat_row["meta_key"], PAGE_HEADER => implode("",file("$Stemplate/header.html")), PAGE_FOOTER => implode("",file("$Stemplate/footer.html")) ));
Yeah, that would be my guess, otherwise if the html files were being parsed you wouldn't see any of the raw php in the served pages... Are you using an include to call the co-op include code?
Yea. just using this: <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('ad_network_248.php'); echo $ad_network; ?> I'll try and get one of my buddies to look into this later I guess. If anyone else sees somthing, let me know. Thanks for the help SEbasic.