Re: cold fusion to php conversion..
| From: | Adrian Teasdale | Date: | Mon, 10 Jul 2000 18:14:41 +0000 |
| Subject: | Re: cold fusion to php conversion.. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-5772@lists.php.net to get a copy of this message | ||
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