Posts tagged: PHP

PHP/HTML enhancements for TextMate

My first little bit of TextMate language grammar hacking: PHP.tmbundle 2.0.1, which has two small enhancements over the stock 2.0:

  • HTML code embedded inside <<<HTMLHTML; heredoc delimiters will be colorized as HTML
  • Code-folding is enabled for those blocks

Enjoy! Feedback is welcome. Thanks to Textmate author Allan Odgaard for helpful answers to my newbie questions on the TextMate mailing list.


ritesh commented on Thu Nov 10 13:03:27 2005:

this is good.

The Onion moves to Drupal

Humor services provider The Onion has moved the back-end of their extensive, and presumably extremely high-traffic, website to Drupal as of August 30th. It’s not clear what they were using before, but I believe it was homebuilt PHP stuff. I’ll miss playing with their old remotely exploitable headline-generating script, but this seems like a good move. One of the developers has posted an interesting overview of the redesign process.

It’s a nice feather in the cap of the Drupal community to have a prominent and busy site adopt their software. My only dig at them is that I figured it out because I saw “/node/” in the URLs!

Django, Rails, and PHP

Sam Newman has posted a useful high-level comparison of Django and Rails on his site. In it, I think he hits on one little-discussed reason why these two projects are grabbing so much mindshare right now:

[Rails and Django] … historically would have ended up being written in Perl or PHP - but ended up being written in Ruby and Python respectively.

When I heard DHH speak at OSCON, he mentioned switching to Ruby after giving up on trying to make PHP do the kind of stuff he wanted to do. Back in July I asked Simon Willison (of the Django team) about PHP; he said that both he and Adrian Holovaty had worked in PHP for years, but it was Python that “gave us the flexibility we needed to pull everything off.”

Rasmus on Ajax

Making the rounds today is a perceptive mailing list posting from Rasmus Lerdorf explaining how simple Ajax really can be. I particularly like this bit:

Before you blindly install large “AJAX” libraries, have a go at rolling your own functionality so you know exactly how it works and you only make it as complicated as you need.

Open Source Initiative at OSCON

According to their blog, the Open Source Intiative (OSI) is holding a public meeting at OSCON on Thursday July 3 at 7:30pm. I’ve been wondering what has transpired since they issued their statement on license proliferation back in April:

Interference between different open-source licenses is now perceived as a sufficiently serious problem that OSI has become as a victim of its own earlier success… The day of the open-source license as tribal flag or corporate monument will have to come to a close.