I'd be more than surprised if every page didn't already have an include... if so just piggyback it.
Otherwise, an easy solution to find/replace in a bunch of files is to search for the the <html> tag and replace it with <?php include "blah.php"; ?><html> That way you don't have to worry about headers before any output as well. !k -----Original Message----- From: Tom King [mailto:[EMAIL PROTECTED] Sent: Friday, March 02, 2007 5:36 AM To: CF-Talk 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:271308 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4