Menu
Okay, I have a bunch of files in an /include directory, like my header and footer and db connection script and stuff.
I’ve protected them (sort of) by checking at the top if a constant is defined, and if it isn’t, redirecting to an error page.
But wouldn’t it be more elegant to send back a 403, and then use .htaccess to display a custom ‘Forbidden’ page? This should be possible, based on the PHP help for Header, but I can’t seem to get it working.
Thanks for any help.