RE: [PHP] Include file questions

From: Date: Fri, 25 May 2007 14:41:17 +0000
Subject: RE: [PHP] Include file questions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-255641@lists.php.net to get a copy of this message
> -----Original Message----- > From: Tijnema [mailto:tijnema@gmail.com] > > > > > > It's just the way you write script, my included files contain only > > > functions & variables, no executing code. 99% I have a class around > > > it. > > > If you write it like that, than there's no problem with execution the > > > included file directly, as it loads the class but doesn't do anything > > > with it :) > > > > > > Tijnema > > > > > > > Why are your include files in your web root in the first place? > Move them > > elsewhere on your filesystem and then it's not even possible to > access them > > via the web. > > > > Edward > > > Oh, I don't want my web files all over the filesystem, I want to keep > all files for a single project inside a single folder on my webserver. > So, that if i move them around, I have all files there. > > Tijnema This is exactly what I do - one folder per project. You just have you web-root as a sub folder in this, eg: /project /includes <- nicely protected /public_html <- web root /images index.php ... ... Edward

« previous php.general (#255641) next »