Tom, Use cfdirectory to read in all the PHP pages, do a cffile="read" on the php page, do a cffile action="write" to put the <?php include_once("config.php");?> at the top, then do a cffile action="append" to put the rest of the PHP script to it.
There you go :-) You still get to use CF during the project :-) -Randy ----- Original Message ----- From: "Tom King" <[EMAIL PROTECTED]> To: "CF-Talk" <cf-talk@houseoffusion.com> Sent: Friday, March 02, 2007 6:35 AM Subject: OT: php equivalent of application.cfc > Hi All, > > Sorry for the OT: > > I'm new to PHP, and am trying to find out if there is the equivalent > of application.cfc onrequest() function: > > I.e, I want to be able to do this, without having to put the includes > in every file....: > > <cffunction name="onrequest"> > <cfargument name="targetpage'' required="yes"> > <cfinclude template="header.html"> > <cfinclude template="#targetpage#> > <cfinclude template="footer.html"> > </cffunction> > > Help? > > Many thanks > T > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271278 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4