Re: Looking for an informed opinion

From: Date: Tue, 28 Nov 2000 23:03:13 +0000
Subject: Re: Looking for an informed opinion
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-27750@lists.php.net to get a copy of this message
Hi Chris: > Accually Ive setup in httpd.conf for apache that apache should consider > all .inc files as .php files. If someone typed my inc file in the url bar > apache would try to parse it... But, what if Apache and/or PHP messes up? The file could go out as clear text. Not good. Anyway, back to the initial subject of style. My files are broken up by operation to be performed. Viewing and setting user preferences is in one file. Adding users is in another file. Etc. Commonly used code, like passwords, classes, headers, etc are kept in separte include files, broken down into into files by procedural needs. Including/requiring files hinders performance, so don't make includes just for the sake of breaking up your code. Use includes to contain code that's needed on various pages. Enjoy, --Dan -- PHP scripts that make your job easier http://www.analysisandsolutions.com/code/ SQL Solution | Layout Solution | Form Solution T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Ave, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

« previous php.general (#27750) next »