AdonaiEchad wrote:
> I have worked on some coldfusion and I know that
coldfusion supports
> "application.cfm" where you can place codes or login
security.
>
> What I like to know is there a equivalent type of code
for php?
There isn't an equivalent of application.cfm in PHP. The
normal practice
is to include files explicitly using include().
If you control the server yourself, you could set
auto_prepend_file in
php.ini, but that's not possible on a shared server. It's
possible to
set auto_prepend_file on a per-directory basis, but it
requires an
Apache server plus the permission to override Apache
defaults.
Short answer: use include().
--
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/