Some PHP Notes

September 26th, 2006

I've been working with PHP for about 8 years now, and here are my notes about php and php5.

As far as languages go, I don't find there to be much benefit to one versus the other. However, and it a big however when used here, the user base for PHP is incredible. In addition to a great user base, PHP has a lot of other things going for it:

  • Great documentation
  • Simple syntax
  • Great server support
    • Apache
    • Lighttpd
    • Microsoft IIS

mod_rewrite seems to freak out when you use an Apache Directory directive, where it maps the %{REQUEST_URI} all the way back to the root of the filesystem. I've also noticed similar unexpeced behaviour in Apache when it uses the mod_vhost_alias VirtualDocumentRoot variable, the php $_SERVER['DOCUMENT_ROOT'] variable doesn't include the virtual host hostname. Ugh. I guess mod_rewrite and wildcard Directory directives do not work.

Yearly Indexes: 2003 2004 2006 2007 2008 2009 2010 2011 2012 2013 2015 2019 2020 2022