My site has pages that are dynamically created from the database. Once I’ve pulled the text out of the database I do the following:
$testimonialText = stripslashes($testimonialText);
$testimonialText = ereg_replace(10,"<br />",$testimonialText);
$testimonialText = ereg_replace(34,"'",$testimonialText);
What would be the best way to implement the following line in the middle of the text? I want readers to see a google ad right in the middle of the article. I’ve seen this type of thing on many pages, but not sure of the best way to tackle it.
$testimonialText .= file_get_contents ('adsense/banner.php');