Re: Finding split points in an article for inserting ads

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yes, thanks, what I'm looking for is how to do that.

On Feb 15, 2011, at 1:38 PM, Simon J Welsh wrote:

> Assuming you're only using <p> tags, count the number of opening <p> tags, divide by three. First ad block goes after the round($amount/3)-th </p>, second ad block goes after the round($amount/3*2)-th </p>.
> ---
> Simon Welsh


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux