SiD3WiNDR Gears  Hacker Emblem  
<?php vs <?
Date: March 30th, 2007 by SiD3WiNDR
Categories: Computing, Rants, Software, Stupid

Time for another rant… when writing PHP code, PLEASE PRETTY PLEASE use <?php instead of the short-sucky <? tag to start your PHP code. This is disabled on many machines, including all of mine. This means whenever I find such an application I want to use, I install it on my server and it goes bork. Sometimes, everywhere <?php is used except in 1 or 2 places, making the thing fail when you’re least expecting it.

This  implies you have to use <?php echo instead of <?= too, and yes, that is more work, but it’s certainly much nicer, as I don’t have to open each and every .php and .inc and .whatever file, replacing <?= by <?php echo, <? by <?php and then <?phpphp by <?php, right?

Yes PowerAdmin , RackTables , ZenPhoto , I’m looking at you. 

Edit: Oh look, WordPress doesn’t make &lt; out of < in the post title – bug reported. I think.


Incoming Links (via Technorati):
Nothing Reported

One Response to “<?php vs <?”

  1. SiD3WiNDR’s Homepage » Blog Archive » RackTables Says:

    […] posted about RackTables earlier , but if you’re looking for a tool to organize rackspace, assets and ip space in, I guess it […]

Weblog Calendar
April 2024
M T W T F S S
« Aug    
1234567
891011121314
15161718192021
22232425262728
2930  
Sales
Pages
Archives
Categories
Links
Meta
© 2002-2024, SiD3WiNDR - Proudly powered by WordPress - XHTML Compliant - RSS (Entries) - RSS (Comments)