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.

Stats

  • 3 posts

My Bookmarks

Installing Apache2 and PHP5 using mod_fcgid | Ivan's Stuff

howto - make the most of your server resources

Tuesday, Jul 29, 2008 at 06:11 PM

Vitamin Features ยป Serving JavaScript Fast

mod gzip can server pre-compressed content if you provide it.

Wednesday, Apr 2, 2008 at 04:42 PM

Http:BL Overview | Project Honey Pot

Real time block list aimed at web robots, comment spammers, email harvesters, etc

Thursday, Apr 26, 2007 at 02:28 PM

No Fear of Remapping URLs of your Site

The case study showed that this simple change alone had a significant impact on the sites search engine visibility. Nothing else was changed or optimized during the study. The number of indexed pages in Google almost doubled, tripled in Yahoo! and almost

Saturday, Mar 24, 2007 at 09:32 PM

Coding Horror: Reducing Your Website's Bandwidth Usage

good tips - particulary the one to outsource feed serving to FeedBurner.

Wednesday, Mar 7, 2007 at 06:21 AM

mod_xsendfile

apache2 module to recognize x-send-file header from a php script and use apache to actually send the file. No more memory_limit or filepassthru (except, files still have to be in public webroot?)

Sunday, Feb 11, 2007 at 04:41 PM

More links