Forgot your password?
typodupeerror

Comment Re:braces (Score 1) 956

PHP is not ideal for doing presentation, no matter how you spin it. Try toying around with PHP's XSLTProcessor object. You use the PHP to analyze the environment variables, such as page request, get data, post data, session data and cookie data, and then use SQL to build an XML tree with the data needed for display. That XML tree is then parsed through an XSL template to generate HTML. This leaves absolutely no ending PHP tags in your PHP, and if done properly, you have no derivative data in your XML tree (for instance, a list of all users along with a count of how many users joined in the past month, that is just derived from the list and their join date), and the XSL generates all of the HTML. It's also far easier to look at this way, since the PHP documents all are pure PHP and the XSL documents are all pure DOM structure, alternating between HTML nodes and XSL nodes.

Slashdot Top Deals

The first rule of intelligent tinkering is to save all the parts. -- Paul Erlich

Working...