Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2000071

Re: [PHP] cold fusion to php conversion.. From: Adrian Teasdale (adrian <email protected>)
Date: 07/10/00

Hi Kelly,

PHP doesn't have anything built in to do *exactly* what you want to do on an
application-by-application basis. Instead, what you have to do is use
include (or require) within each page and put the path to this file. I
converted a CF application to PHP and I did it this way. I found the path
to the application.php file (as I called it) and then used this as a
variable within all of my pages. Worked really well. Not quite as easy as
within CF, but did the same job and was easy enough to strip in across all
my pages.

hope this helps

Ade

>Quick newbie question..

>I'm converting a cold fusion project to php.

>Cold fusion supports an 'application' structure by the inclusion of an
>application.cfm file. What this means is that this application.cfm file
gets >processed before any other .cfm file in that same directory, etc.
Very useful for >authentication, setting of global type variables, etc.

>I know that you can include files (require) via php, but does it have a
similar >function? Starting my first substatial php project, and for
whatever reason >couldn't find an answer to this.

>Thanks,

>Kelly Meeks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>