Forum Moderators: coopster

Message Too Old, No Replies

auto_append_file troubles

auto_append_file stops working if you use exit()

         

cheater512

9:59 pm on Apr 12, 2005 (gmt 0)

10+ Year Member



I run a free web host and I am using auto_append_file to add ads to the bottom of the page.

The problem is that most web apps (forums, etc...) put exit() somewhere and that kills the ads.

How can I make sure that the ads are displayed?

(I've tried Apache's mod_layout but it gives me errors when I try to use it and Apache wont start)

coopster

10:26 pm on Apr 12, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Kill the exit()s ;)

But quite honestly I don't know of any way around your dilemma except to get rid of them if you can. How about doing a mass search/replace on exit() and replace it with exit($string_that_contains_my_ad_html); ...?

cheater512

7:15 am on Apr 13, 2005 (gmt 0)

10+ Year Member



Yeah but that doesnt take a rocket scientist to fool. :(

Maybe I could prepend something to force the ad?
Prepend is always executed but I want the ads at the bottom.