I was wondering if it's possible to verify a DIV's width and height on server side (PHP) without running any browser?
It seems it's not possible without writing a parser, which is no worth.
One Rube Goldberg way I could think of is, convert that DIV into html (using html tidy), then into PDF and then get the size. Highly inefficient. Even in that case I'm not sure how I'd set PDF page size.
The real practical problem is that I want to confirm the size of adverts created on client side. Users are charged based on size only. What could be alternate ways to verify dimensions? Don't Google and adready (www.adready.com) do something like this already?
Edited: These ads are template based and customer changes only few TEXT variables.