Raditha Dissanayake wrote:
How about just escaping out of php :-) and embedding the html direct?

Jason Giangrande wrote:

I'm looking for an easy way to write all my HTML using PHP. I could do this with a bunch of print statements or the like, but that doesn't seem like a real good solution. I noticed that PEAR has several packages for creating HTML. Has anyone used any of these packages? I'm particularly interested in the HTML_Common, HTML_Page, and HTML_CSS packages. The HTML_Page package, which to me seems like the one package that actually outputs HTML, is marked as "beta". Anyone know if there are any alternative packages that do a similar thing?

Also, is it possible to download a package marked beta with PEAR, or does it need to be downloaded manually?

Thanks,

That's the thing. I'm looking for an alternative way of writing HTML into PHP pages. I did a few simple pages a while ago just using print statements instead of closing the PHP tag and then writing HTML. It made the code a little easier to follow. The problem is that print statements can add up fast, so using to many of them in one page is probably just as hard to follow as closing a PHP block, so you can write some HTML. That was why I was looking for an alternative way to write HTML in PHP pages.


I tried the HTML_Page class from PEAR, but it seems to have some issues still. I guess that's why it's still in beta. I've decided I'll try and write something on my own for now that incorporates a few things I've seen in other classes (mainly HTML_Common, and HTML_Page).

--
Jason Giangrande <[EMAIL PROTECTED]>
http://www.giangrande.org
http://www.dogsiview.com

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



Reply via email to