18 August, 2008
Thinking of switch to PHP w/Fast CGI?
If you're contemplating switching to running PHP5 under FastCGI, to take advantage of apache's threaded worker model and improve your server's performance, think again. If you're used to setting and overriding php values via .htaccess files or using php_value/php_flag in your virtual host directory, this is not supported with FastCGI. You'll have to figure out how to set those values via some other means. Some PHP ini directives can be set in your script directly, with ini_set, but others have to be set outside of it (register_globals for example).
...click to continue reading.28 August, 2007
Don't abuse PHP's header function for redirects
PHP's Header function can come in quite handy when you're building your next greate web application. Its powerful, but as a result, its tempting to misuse it to do even the simplest things, like permanent redirects. Usually, its done like this:
// redirect /publications (this page) to real page (/documents)
Header("Location: /documents/");
One line of code, time to move on to the next task in your queue, right?
...click to continue reading.14 February, 2007
Fixing Subversion Propfind 403 errors
I've been using Subversion heavily lately to keep my live and development sites synchronized and its been a huge productivity booster. I had to move some code over to a lite site for work this evening and it was such a pain, because I had to go through and figure out the files I needed to copy.
...click to continue reading.












