On Jan 13, 12:37 pm, matt_thomson <[email protected]> wrote: > It seems my if(! file_exists($filePath){ > //make file > //write html} > > else{ > //write html} > > does what the 404 handler does, but without having to use mod_rewrite > and a 404 handler (and doesn't require getting Graphic Designer > Customers to find and edit their .htaccess file!).
Yup pretty much. The 404 method has an important performance gain though. If the file has already been generated, the web server serves it conventionally, without firing up a PHP interpretor. And presumably the derivative file will be generated once and served many times. Malc
-- NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected]
