Is there any extension or package for php to output html like CGI.pm in Perl ?
Why can't you do echo('<html><body ...');
Or am I missing something?
Because it would be easier, quicker and cooler 😃
Look: http://stein.cshl.org/WWW/software/CGI/
Ah. I see. But that doesn't guarantee semantically correct XHTML _
No, I don't think PHP has anything like this by default. Maybe some PEAR code or a third-party module.