|
|
10.3: Enable the built-in PHP module
No, PHP doesn't need the ?> at the end of a script for it to parse correctly. May be nice for appearances (and necessary for brain-dead editors like Dreamweaver), but on the other hand, any empty lines you may have in your PHP after the closing tag, will be sent out to the client, which is unnecessary.
works fine.
10.3: Enable the built-in PHP module
Just because it can be done doesn't mean it's correct. The whole point of "smart" markup languages like PHP, SSI, ASP, or JSP is to contain the advanced logic inside of HTML/XML/SGML tags so that the document remains otherwise syntactically valid. If Dreamweaver complains about a dangling marker like PHP's "?>", it's doing the right thing. Come on, its only another two characters (three if you count a line break) -- it's not hard to include, and doing so is one way to avoid a mentality of sloppiness that can come back to haunt you when debugging other code later. ---
10.3: Enable the built-in PHP module
Actually, I was talking about the () brackets. The original post had only : |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.10 seconds |
|