Re: Migrating to Application.cfc

2008-04-11 Thread Jeff Price
Thanks Patrick and Barney! This list rocks :)

-jeff

As long as you use the same application name, the application has no
awareness of an Application.cfm/cfc distinction.  Only the
Application.* file itself is different. Both have strengths and
weaknesses.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303190
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Migrating to Application.cfc

2008-04-10 Thread Jeff Price
This is not a question about the structure of an Application.cfc, I've got that 
down. No problem.

This is about taking a bunch of apps that use the same application scope but 
different Application.cfm files, and converting them one by one to 
Application.cfc.

All of these have the same Application scope of MyApp so the user only has to 
log into one app, and they are thus logged into them all.

tools/calc/Application.cfm
tools/time/Application.cfm
apps/funstuff/Application.cfm

Now, my question is...what happens if I change one those to use Application.cfc 
and leave the others at Application.cfm. Am I asking for a world of hurt and 
hidden consequences? or will everything play nicely together. I would still 
have to worry about values being overwritten and other enjoyable bugs like 
that. :)

Thanks in advance.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303112
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Migrating to Application.cfc

2008-04-10 Thread Patrick Santora
This question has been tossed around a few lists lately. I have not
verified, but from what I understand as long as you have the same
application name within the application.cfc and application.cfm files, then
you should be ok.

On Thu, Apr 10, 2008 at 9:38 AM, Jeff Price [EMAIL PROTECTED] wrote:

 This is not a question about the structure of an Application.cfc, I've got
 that down. No problem.

 This is about taking a bunch of apps that use the same application scope
 but different Application.cfm files, and converting them one by one to
 Application.cfc.

 All of these have the same Application scope of MyApp so the user only
 has to log into one app, and they are thus logged into them all.

 tools/calc/Application.cfm
 tools/time/Application.cfm
 apps/funstuff/Application.cfm

 Now, my question is...what happens if I change one those to use
 Application.cfc and leave the others at Application.cfm. Am I asking for a
 world of hurt and hidden consequences? or will everything play nicely
 together. I would still have to worry about values being overwritten and
 other enjoyable bugs like that. :)

 Thanks in advance.


 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303114
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Migrating to Application.cfc

2008-04-10 Thread Barney Boisvert
As long as you use the same application name, the application has no
awareness of an Application.cfm/cfc distinction.  Only the
Application.* file itself is different. Both have strengths and
weaknesses.

cheers,
barneyb

On Thu, Apr 10, 2008 at 9:38 AM, Jeff Price [EMAIL PROTECTED] wrote:
 This is not a question about the structure of an Application.cfc, I've got 
 that down. No problem.

  This is about taking a bunch of apps that use the same application scope but 
 different Application.cfm files, and converting them one by one to 
 Application.cfc.

  All of these have the same Application scope of MyApp so the user only has 
 to log into one app, and they are thus logged into them all.

  tools/calc/Application.cfm
  tools/time/Application.cfm
  apps/funstuff/Application.cfm

  Now, my question is...what happens if I change one those to use 
 Application.cfc and leave the others at Application.cfm. Am I asking for a 
 world of hurt and hidden consequences? or will everything play nicely 
 together. I would still have to worry about values being overwritten and 
 other enjoyable bugs like that. :)

  Thanks in advance.



-- 
Barney Boisvert
[EMAIL PROTECTED]
http://www.barneyb.com/

Got Gmail? I have 100 invites.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303115
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Migrating to Application.cfc

2008-04-10 Thread Qasim Rasheed
Barney,

I would be interested in knowing what are the weaknesses in Application.cfc
based on your expertise.

Thanks

On Thu, Apr 10, 2008 at 12:47 PM, Barney Boisvert [EMAIL PROTECTED]
wrote:

 As long as you use the same application name, the application has no
 awareness of an Application.cfm/cfc distinction.  Only the
 Application.* file itself is different. Both have strengths and
 weaknesses.

 cheers,
 barneyb

 On Thu, Apr 10, 2008 at 9:38 AM, Jeff Price [EMAIL PROTECTED]
 wrote:
  This is not a question about the structure of an Application.cfc, I've
 got that down. No problem.
 
   This is about taking a bunch of apps that use the same application
 scope but different Application.cfm files, and converting them one by one to
 Application.cfc.
 
   All of these have the same Application scope of MyApp so the user
 only has to log into one app, and they are thus logged into them all.
 
   tools/calc/Application.cfm
   tools/time/Application.cfm
   apps/funstuff/Application.cfm
 
   Now, my question is...what happens if I change one those to use
 Application.cfc and leave the others at Application.cfm. Am I asking for a
 world of hurt and hidden consequences? or will everything play nicely
 together. I would still have to worry about values being overwritten and
 other enjoyable bugs like that. :)
 
   Thanks in advance.
 


 --
 Barney Boisvert
 [EMAIL PROTECTED]
 http://www.barneyb.com/

 Got Gmail? I have 100 invites.

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303119
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Migrating to Application.cfc

2008-04-10 Thread Barney Boisvert
The primary one is that you can't set variables in the page's
variables scope without using onRequest, which breaks remote calls.
You can use the request scope from onRequestStart, of course, but
there are different semantics for that (like being shared across
CFCs/custom tags).  Less troubling, but still annoying, is that the
property names used to configure the application are not enforced at
all, so a typo there can be very difficult to track down.

Of course, with Application.cfm you can't have per-application
mappings or session events and you have to manage your application
startup manually, but I do the last with Application.cfc so I don't
have to cycle CF all the time.

cheers,
barneyb

On Thu, Apr 10, 2008 at 10:50 AM, Qasim Rasheed [EMAIL PROTECTED] wrote:
 Barney,

  I would be interested in knowing what are the weaknesses in Application.cfc
  based on your expertise.

  Thanks

  On Thu, Apr 10, 2008 at 12:47 PM, Barney Boisvert [EMAIL PROTECTED]
  wrote:



   As long as you use the same application name, the application has no
   awareness of an Application.cfm/cfc distinction.  Only the
   Application.* file itself is different. Both have strengths and
   weaknesses.
  
   cheers,
   barneyb
  
   On Thu, Apr 10, 2008 at 9:38 AM, Jeff Price [EMAIL PROTECTED]
   wrote:
This is not a question about the structure of an Application.cfc, I've
   got that down. No problem.
   
 This is about taking a bunch of apps that use the same application
   scope but different Application.cfm files, and converting them one by one 
 to
   Application.cfc.
   
 All of these have the same Application scope of MyApp so the user
   only has to log into one app, and they are thus logged into them all.
   
 tools/calc/Application.cfm
 tools/time/Application.cfm
 apps/funstuff/Application.cfm
   
 Now, my question is...what happens if I change one those to use
   Application.cfc and leave the others at Application.cfm. Am I asking for a
   world of hurt and hidden consequences? or will everything play nicely
   together. I would still have to worry about values being overwritten and
   other enjoyable bugs like that. :)
   
 Thanks in advance.
   
  
  
   --
   Barney Boisvert
   [EMAIL PROTECTED]
   http://www.barneyb.com/
  
   Got Gmail? I have 100 invites.
  
  


 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303122
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Migrating to Application.cfc

2008-04-10 Thread Don L
The primary one is that you can't set variables in the page's
variables scope without using onRequest, which breaks remote calls.
You can use the request scope from onRequestStart, of course, but
there are different semantics for that (like being shared across
CFCs/custom tags).  Less troubling, but still annoying, is that the
property names used to configure the application are not enforced at
all, so a typo there can be very difficult to track down.

Out of curiosity, is this thing by design or an oversight?  Thks. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303130
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Problem with login in the Application.cfc (saving additional info in the session scope)

2007-11-16 Thread Richard White
OK, im managing to narrow it down a bit but something very strange is happening.

if i close the browser whilst im still logged in and sign in again it does 
display the login page correctly. i have dumped the session variables and it 
shows that the cfauthorization_appName tag does not exist in session. 

then if i attempt to login again, it does go inside the the cflogin tag but 
then after this tag i have a cfif NOT IsDefined(cflogin) tag this is where 
it fails. it finds that it doesn't exist so aborts the cflogin, yet it then 
shows that the cfauthorization_appName tag has been assigned a value.

i have set this up exactly how it says in the live docs so am really confused

thanks 

~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293458
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Problem with login in the Application.cfc (saving additional info in the session scope)

2007-11-16 Thread Richard White
I think that im going to go with some homegrown session storage security for 
the login as there seems to be some bug somewhere that doesn't make any sense

thanks

richard 

~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293460
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Problem with login in the Application.cfc (saving additional info in the session scope)

2007-11-16 Thread Richard White
would it have anything to do with the application timeout which i have set to 
the following:

cfset This.sessiontimeout=#createtimespan(0,0,15,0)#
cfset This.applicationtimeout=#createtimespan(30,0,0,0)#

Thanks 

~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293457
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Problem with login in the Application.cfc (saving additional info in the session scope)

2007-11-16 Thread Richard White
Does anyone have any ideas at all that i could try as i just cannot work out 
what is wrong and this has been bugging me for over a week now?

Thanks

Richard 

~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293456
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Problem with login in the Application.cfc (saving additional info in the session scope)

2007-11-13 Thread Richard White
Hi

I am having exactly the same problem, does anyone have any clue why this would 
occur and how to fix it

thanks 

~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293198
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Problem with login in the Application.cfc (saving additional info in the session scope)

2007-10-26 Thread Adalberto Gallardo
The problem is not when the session ends, but when the user enters again to the 
system after his(her) session ended. The applications shows the login template, 
the user enter the user name and password and the application (I do not know 
how) authenticates the user and let him(her) to enter without running my:

cfset roles=session.security.login(cflogin.name,cflogin.password)  

Nor my:

cfloginuser name=#cflogin.name# Password=#cflogin.password# roles 
=#roles#

And that is why I end up with a loged in user without my “session.userInfo” 
variable. I already try loging out the user in the onSessionEnd but it did not 
work either. 
My solution works but I want to know why is this happening because sometimes 
its authenticates and sometimes not.

~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292116
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Problem with login in the Application.cfc (saving additional info in the session scope)

2007-10-25 Thread Adalberto Gallardo
hi,
I have a bit of a problem, and I know that happens sometimes when the sessi=
on expires (and may be have something to do with the application expiration=
).
OK this is it:
Every time I authenticate an user (this is made by an object created in the=
 session scope) I create a struct that contains all the user information. T=
his struct resides in the session scope and should be available while the s=
ession is active. When the user logout I delete this struct. Everything wor=
ks fine, but some times when the session expires and the user re-login, the=
 server do not run the authentication neither the login part of my code. So=
 I ended without my struct and with a logged in user. 
This is my simplified  Application.cfc, I do not know what I am missing: 


cfcomponent displayname =Application


   !--- Atributes ---
   cfscript
  this.loging  = true;
  this.name  = APP;
  this.Sessionmanagement  = true;
  this.Sessiontimeout  = #createtimespan(0,0,1,0)#;
  this.applicationtimeout  = #createtimespan(0,1,0,0)#;
  this.loginstorage  = session;
   /cfscript

 
!--- onApplicationStart ---
cffunction name =onApplicationStart
  
   cfif this.loging
  cflog file =#This.Name# type =Information text =Started /
   /cfif
   
   cfscript
 application.sessions  = 0;
  /cfscript
   /cffunction

   !--- onApplicationEnd ---
   cffunction name =onApplicationEnd
  cfargument name =ApplicationScope required =true /
  
  cfif this.loging
  cflog file =#this.Name# type =Information
text =#ApplicationScope.applicationname# Ended /
   /cfif
  
   /cffunction
   
   
   !---  onRequestStart  ---
   cffunction name =onRequestStart
  
  cfparam name =act default =0
   
   !--- If we want to logout ---
   cfif act is logout
  cfset clearSession()
  cflogout
   /cfif


   
 
  !--- the user is not login ---
 cflogin
   cfif NOT IsDefined(cflogin)
 !--- the action of the login form point to index.cfm ---
 cfinclude template =login_form.cfm /
 cfabort

 !--- Validate ---
   cfelse

 !--- object that autenticates the user ---
 !--- this object also creates a session struct 
   session.userInfo with aditional user info ---
cfset roles=session.security.login(cflogin.name,cflogin.password)

 !--- If the user has any role ---
 cfif roles is not NONE
   cfloginuser name=#cflogin.name# 
Password  = #cflogin.password# 
roles =#roles#
   
   --- the times that I have the error the user is loged in by 
  ColdFusion but this test code is not executed --- 
  cfdump var =#session#   

 !--- This is not a valid user ---
 cfelse
  !--- the action of the login form points to index.cfm ---
  cfinclude template =login_form.cfm /
  cfabort
 /cfif
   /cfif
/cflogin
   
!--- here is the problem and this is the solution that I made 
   'but I do not like it' ---
!--- sometimes I get here and the struct dose not exist ---
cfif NOT isDefined(session.userInfo)
cfset session.security.load_user()
/cfif
   
cfset this.start =now()



   /cffunction


   !---  onRequest ---  
   cffunction name =onRequest
  cfargument name =targetPage type =String required =true /

  !--- This is a minimal example of an onRequest filter. ---
  cfsavecontent variable =content
 cfinclude template =#ARGUMENTS.TargetPage# /
  /cfsavecontent
   
  cfoutput
   #content#
  /cfoutput

   /cffunction


   !---  onSessionStart  ---
   cffunction name =onSessionStart
  cfscript
 session.started  = now();
 clearSession();
  /cfscript
   
   !--- Create the security object ---
   cfobject component =#application.core#.aspects.Security 
  name =session.security type =component /
   
   cflock timeout =5 throwontimeout =no 
   type =exclusive scope=application
 cfset application.sessions  = application.sessions + 1 /
   /cflock
   
   cfif this.loging
 cflog file =#this.Name# type =Information 
text =Session: #Session.sessionid# started /
   /cfif
   /cffunction


   !---  onSessionEnd  ---
   cffunction name =onSessionEnd
 cfargument name  = SessionScope required =true /
  
 cfif this.loging
  cflog file =#this.Name# type =Information 
text =Session: #arguments.SessionScope.sessionid# ended /
 /cfif
   /cffunction



   !--- -
   PRIVATE FUNCTIONS
   -- ---
   
   !--- Clear Session

Re: Problem with login in the Application.cfc (saving additional info in the session scope)

2007-10-25 Thread Jon Clausen
Placing the following in the onSessionEnd method should solve the  
problem:

cfif getAuthUser() NEQ 
cflogout/
/cfif

Option B is to persist some cookie data which will re-login the user  
when the session ends.

As a side note, you can also use the cflogin  name to create a  
list.  The you can use the  getAuthUser() as a list and use that list  
to recreate the session structure:

cflogin
cfloginuser name=#arguments.userid#,#arguments.username#...

The you would use listFirst(getAuthUser()) to pull the userID and  
regenerate the user's session structure when it does not exist.

HTH,

Jon

On Oct 25, 2007, at 11:14 AM, Adalberto Gallardo wrote:

 hi,
 I have a bit of a problem, and I know that happens sometimes when  
 the sessi=
 on expires (and may be have something to do with the application  
 expiration=
 ).
 OK this is it:
 Every time I authenticate an user (this is made by an object  
 created in the=
  session scope) I create a struct that contains all the user  
 information. T=
 his struct resides in the session scope and should be available  
 while the s=
 ession is active. When the user logout I delete this struct.  
 Everything wor=
 ks fine, but some times when the session expires and the user re- 
 login, the=
  server do not run the authentication neither the login part of my  
 code. So=
  I ended without my struct and with a logged in user.


~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292075
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: stop requests of images via application.cfc

2007-10-19 Thread Dale Fraser
Upload them to an area outsite your webroot before they are approved.

Instead of

C:\www\temp\

C:\temp\

That way they can not be accessed via the internet unless you code that
access.

Regards
Dale Fraser

http://learncf.com

-Original Message-
From: Jeff Becker [mailto:[EMAIL PROTECTED] 
Sent: Saturday, 20 October 2007 11:29 AM
To: CF-Talk
Subject: stop requests of images via application.cfc

I'm uploading (via CFIMAGE) images into a /temp/ folder.  Naming them 1.jpg,
2.jpg, etc..

After I approve them, I move them out of /temp/.

It appears application.cfc onRequestStart doesn't stop requests directly to
/temptemp/UNAPPROVED#.jpg

Any thoughts??  Much appreciated! 



~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291648
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


stop requests of images via application.cfc

2007-10-19 Thread Jeff Becker
I'm uploading (via CFIMAGE) images into a /temp/ folder.  Naming them 1.jpg, 
2.jpg, etc..

After I approve them, I move them out of /temp/.

It appears application.cfc onRequestStart doesn't stop requests directly to 
/temptemp/UNAPPROVED#.jpg

Any thoughts??  Much appreciated! 

~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291646
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


stop requests of images via application.cfc

2007-10-19 Thread Jeff Becker
I'm uploading (via CFIMAGE) images into a /temp/ folder.  Naming them 1.jpg, 
2.jpg, etc..

After I approve them, I move them out of /temp/.

It appears application.cfc onRequestStart doesn't stop requests directly to 
/temptemp/UNAPPROVED#.jpg

Any thoughts??  Much appreciated! 

~|
Check out the new features and enhancements in the
latest product release - download the What's New PDF now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291643
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: stop requests of images via application.cfc

2007-10-19 Thread Sean Corfield
On 10/19/07, Jeff Becker [EMAIL PROTECTED] wrote:
 It appears application.cfc onRequestStart doesn't stop requests directly to 
 /temptemp/UNAPPROVED#.jpg

 Any thoughts??  Much appreciated!

Well, of course it doesn't - ColdFusion is only involved for .cfm and
..cfc requests and so Application.cfc is never invoked for .jpg
requests!

New Atlanta are promising this functionality for BlueDragon on IIS in
the future (Vince demo'd it at CFUNITED).

However, as Dale suggested, why not put the images up outside of webroot?
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/

If you're not annoying somebody, you're not really alive.
-- Margaret Atwood

~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291652
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: application.cfc / cfthread / my complete lack of understanding

2007-10-05 Thread Charles Sheehan-Miles
I've figured what I was doing wrong, so my corrected question is: is  
there any way to terminate a running thread that was launched by a  
PREVIOUS page request?






~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290408
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Application.cfc adding whitespace

2007-09-03 Thread James Smith
I have a cfm page which must at all costs return a simple pipe delimited
list with no whitespace before or after it.  Application.cfc is adding some
and messing everything up.  For now I have fixed the problem by moving the
relevant cfm page into its own folder with its own [blank] application.cfc
but the has got to be a better long term solution.

Anyone any ideas?

--
Jay

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.484 / Virus Database: 269.13.2/985 - Release Date: 02/09/2007
16:32
 


~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287654
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Application.cfc adding whitespace

2007-09-03 Thread James Holmes
Use output=false on the component and all of the methods

On 9/3/07, James Smith [EMAIL PROTECTED] wrote:
 I have a cfm page which must at all costs return a simple pipe delimited
 list with no whitespace before or after it.  Application.cfc is adding some
 and messing everything up.  For now I have fixed the problem by moving the
 relevant cfm page into its own folder with its own [blank] application.cfc
 but the has got to be a better long term solution.

 Anyone any ideas?

 --
 Jay

 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.5.484 / Virus Database: 269.13.2/985 - Release Date: 02/09/2007
 16:32



 

~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287655
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Application.cfc adding whitespace

2007-09-03 Thread Bobby Hartsfield
Is output set to false? You can also use 
cfcontent reset=yes / just before any output in the calling page to
reset any white space. That is, of course, if you don't want ANYTHING
displayed before this point

Example:

1
2
3
4
5
cfcontent reset=yes /6

Would result in the source of just...
6

..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

-Original Message-
From: James Smith [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 03, 2007 8:47 AM
To: CF-Talk
Subject: Application.cfc adding whitespace

I have a cfm page which must at all costs return a simple pipe delimited
list with no whitespace before or after it.  Application.cfc is adding some
and messing everything up.  For now I have fixed the problem by moving the
relevant cfm page into its own folder with its own [blank] application.cfc
but the has got to be a better long term solution.

Anyone any ideas?

--
Jay

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.484 / Virus Database: 269.13.2/985 - Release Date: 02/09/2007
16:32
 




~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287657
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Application.cfc adding whitespace

2007-09-03 Thread James Smith
Output=no doesn't quite work (almost but not quite) since setting it on
the onRequest() function results in no output being sent to the browser at
all!

However, adding cfcontent reset=yes directly before cfinclude
template=#Arguments.targetPage# in the onRequest() function seems to have
solved that.

Cheers all.

--
Jay
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.484 / Virus Database: 269.13.2/985 - Release Date: 02/09/2007
16:32
 


~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287660
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Application.cfc adding whitespace

2007-09-03 Thread Will Tomlinson
Is output set to false? You can also use 
cfcontent reset=yes / just before any output in the calling page to
reset any white space. That is, of course, if you don't want ANYTHING
displayed before this point

I always like usin that one for the doctype in a header.  :)

me 

~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287664
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Application.cfc adding whitespace

2007-09-03 Thread Bobby Hartsfield
Yep ;-)

..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

-Original Message-
From: Will Tomlinson [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 03, 2007 3:58 PM
To: CF-Talk
Subject: Re: Application.cfc adding whitespace

Is output set to false? You can also use cfcontent reset=yes / just 
before any output in the calling page to reset any white space. That 
is, of course, if you don't want ANYTHING displayed before this point

I always like usin that one for the doctype in a header.  :)

me 



~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287667
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: OT-ish: JSP equivalent for application.cfc?

2007-08-31 Thread Nick de Voil
Pete

  Does JSP have an analogue to the application.cfc file?

No, at least not a standard analogue (some JSP containers like JRun 
have/had a non-standard thing called global.jsa.) You can initialise 
simple global variables using web.xml.

  Any other tips for a CF guy teaching himself JSP?  I'm using Apache 
Tomcat.

Take a look at tag libraries (taglibs), Struts and Hibernate.

A JSP app written using taglibs looks remarkably like a CF application - 
not surprisingly, since taglibs were invented by people from Allaire, I 
believe.

Nick


~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287512
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: OT-ish: JSP equivalent for application.cfc?

2007-08-31 Thread Rick Root
Are people still using JSP?

Isn't it even more of a dying language than Coldfusion? ;)

Rick

~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287518
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: OT-ish: JSP equivalent for application.cfc?

2007-08-31 Thread Pete Ruckelshaus
The vast majority of developers that I know (mostly friends from previous
jobs) in this area are JSP developers.

Pete


On 8/31/07, Rick Root [EMAIL PROTECTED] wrote:

 Are people still using JSP?

 Isn't it even more of a dying language than Coldfusion? ;)

 Rick

 

~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287520
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: OT-ish: JSP equivalent for application.cfc?

2007-08-31 Thread Dave Watts
 Are people still using JSP?
 
 Isn't it even more of a dying language than Coldfusion? ;)

Oh no! But as Nick mentioned, many JSP programmers use some sort of
abstraction on top of JSP - templating libraries like Velocity, JSF, etc,
etc.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!


~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287530
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


OT-ish: JSP equivalent for application.cfc?

2007-08-30 Thread Pete Ruckelshaus
I'm teaching myself JSP after doing primarily CF for the past 8 years.

Does JSP have an analogue to the application.cfc file?

Any other tips for a CF guy teaching himself JSP?  I'm using Apache Tomcat.

Thanks,

Pete


~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287501
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: OT-ish: JSP equivalent for application.cfc?

2007-08-30 Thread Claude Schneegans
 Any other tips for a CF guy teaching himself JSP?

Sure: Prosac!

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287503
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


application.cfc onError

2007-08-27 Thread Chad Gray
I started using the onError function.  I get the below error on one page.

Any ideas?  The code runs fine, I just get an email everytime the page is hit 
since I started using onError.

It does not like my use of CFLocation, but it seems to work fine and I don't 
see any typos.


TagContext array  
1 struct 
COLUMN 0  
ID CFLOCATION  
LINE 92  
RAW_TRACE at 
cffinjobmaterial2ecfm161837558.runPage(D:\www\Employee\finjobmaterial.cfm:92)  
TEMPLATE D:\www\Employee\finjobmaterial.cfm  
TYPE CFML  
 
 
Type coldfusion.runtime.AbortException  


~|
Check out the new features and enhancements in the
latest product release - download the What's New PDF now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287174
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: application.cfc onError

2007-08-27 Thread Peterson, Chris
I googled for 'cflocation application.cfc onerror' and this was the
first result (the fix for it)

http://www.coldfusionjedi.com/index.cfm/2005/9/28/Two-Nice-Fixes-in-Cold
Fusion-701

You can either update to CF 7.01 (why are you not up to date??) or you
can put this into your onError method:

cfif arguments.exception.rootCause eq
coldfusion.runtime.AbortException
cfreturn/
/cfif 


Chris Peterson
Gainey IT
Adobe Certified Advanced Coldfusion Developer

-Original Message-
From: Chad Gray [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 27, 2007 9:16 AM
To: CF-Talk
Subject: application.cfc onError

I started using the onError function.  I get the below error on one
page.

Any ideas?  The code runs fine, I just get an email everytime the page
is hit since I started using onError.

It does not like my use of CFLocation, but it seems to work fine and I
don't see any typos.


TagContext array
1 struct
COLUMN 0
ID CFLOCATION
LINE 92
RAW_TRACE at
cffinjobmaterial2ecfm161837558.runPage(D:\www\Employee\finjobmaterial.cf
m:92)
TEMPLATE D:\www\Employee\finjobmaterial.cfm
TYPE CFML  
 
 
Type coldfusion.runtime.AbortException  




~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287175
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: application.cfc onError

2007-08-27 Thread Chad Gray
Oh wow!  this server is not up to date.  No wonder I was getting strange 
results from staging to production.

Thanks!


-Original Message-
From: Peterson, Chris [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 27, 2007 9:23 AM
To: CF-Talk
Subject: RE: application.cfc onError

I googled for 'cflocation application.cfc onerror' and this was the
first result (the fix for it)

http://www.coldfusionjedi.com/index.cfm/2005/9/28/Two-Nice-Fixes-in-Cold
Fusion-701

You can either update to CF 7.01 (why are you not up to date??) or you
can put this into your onError method:

cfif arguments.exception.rootCause eq
coldfusion.runtime.AbortException
cfreturn/
/cfif 


Chris Peterson
Gainey IT
Adobe Certified Advanced Coldfusion Developer

-Original Message-
From: Chad Gray [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 27, 2007 9:16 AM
To: CF-Talk
Subject: application.cfc onError

I started using the onError function.  I get the below error on one
page.

Any ideas?  The code runs fine, I just get an email everytime the page
is hit since I started using onError.

It does not like my use of CFLocation, but it seems to work fine and I
don't see any typos.


TagContext array
1 struct
COLUMN 0
ID CFLOCATION
LINE 92
RAW_TRACE at
cffinjobmaterial2ecfm161837558.runPage(D:\www\Employee\finjobmaterial.cf
m:92)
TEMPLATE D:\www\Employee\finjobmaterial.cfm
TYPE CFML  
 
 
Type coldfusion.runtime.AbortException  






~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287176
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


application.cfc question

2007-08-27 Thread Chad Gray
I am switching an application.cfm to application.cfc.

Im my application.cfm I defined a function that I used through out the web site.
cfscript
function replaceQuotes(arg) {
return Replace(arg, '', ##34;, ALL);
}
/cfscript


Now in the application.cfc I cannot place the function in onRequestStart I get 
an error.

So now, to have this function available to the web site, I can just make a new 
function in application.cfc like this:

cffunction name=replaceQuotes
cfargument name=arg required=true
cfreturn #Replace(arguments.arg, '', '##34;', 'ALL')# /
/cffunction


Right???

I just want to make sure I am doing this right and im not going to kill 
application.cfc.


~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287204
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: application.cfc question

2007-08-27 Thread Crow T. Robot
Plenty of ways to do this, but I'd probably create a utilities.cfc and then
drop it into the application scope (in OnApplicationStart()).  That way,
anytime you want to use it on your site, you just call it that way. The
added benefit is if you find you have more functions liek this that you may
need, just drop them into utilities.cfc.


On 8/27/07, Chad Gray [EMAIL PROTECTED] wrote:

 I am switching an application.cfm to application.cfc.

 Im my application.cfm I defined a function that I used through out the web
 site.
 cfscript
 function replaceQuotes(arg) {
 return Replace(arg, '', ##34;, ALL);
 }
 /cfscript


 Now in the application.cfc I cannot place the function in onRequestStart I
 get an error.

 So now, to have this function available to the web site, I can just make a
 new function in application.cfc like this:

 cffunction name=replaceQuotes
 cfargument name=arg required=true
 cfreturn #Replace(arguments.arg, '', '##34;', 'ALL')# /
 /cffunction


 Right???

 I just want to make sure I am doing this right and im not going to kill
 application.cfc.


 

~|
Check out the new features and enhancements in the
latest product release - download the What's New PDF now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287207
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: application.cfc question

2007-08-27 Thread Josh Nathanson
 Plenty of ways to do this, but I'd probably create a utilities.cfc and 
 then
 drop it into the application scope (in OnApplicationStart()).  That way,
 anytime you want to use it on your site, you just call it that way.

I concur with Crow - I was going to suggest exactly the same thing.  You 
could add the function right in App.cfc, then use cfinvoke to call the 
method, but I feel for cleanliness App.cfc should just contain those native 
functions (onApplicationStart etc.).

-- Josh 


~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287212
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: [CFCDEV] Application.cfc and this scope

2007-08-06 Thread Tom Chiverton
On Friday 03 Aug 2007, [EMAIL PROTECTED] wrote:
 Or any alternative way to set this scope variables which is available
 in Application.cfc without having any Application.cfc?

A server-wide mapping in the administrator, for instance ?

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.


~|
Check out the new features and enhancements in the
latest product release - download the What's New PDF now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285451
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: application.cfc and var

2007-08-03 Thread Ben Nadel
Also, it always helps to remember that Application.cfc is in NO WAY
special or different than any other CFC you will ever write. The only
difference is that the CF application server instantiates it for each
page request and looks for certain methods to call for certain events...
But the CFC itself is not special. 

Thinking that way for me helped clear up a lot of the magic that I
thought was going on.

..
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
 
Need ColdFusion Help?
www.bennadel.com/ask-ben/

-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 01, 2007 6:24 PM
To: CF-Talk
Subject: Re: application.cfc and var

I assume you mean in methods. Yes.

The var rule also applies to UDFs as well.

Var now.
Var tomorrow.
Var always.

:)

On 8/1/07, Chad Gray [EMAIL PROTECTED] wrote:
 Ok now that I have learned about declaring variables in CFCs so you
don't run into race conditions and problems.  How about application.cfc?

 Do I need to use cfset var foo =  in application.cfc?



 



~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285311
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Application.cfc and this scope

2007-08-03 Thread Oğuz_Demirkapı
Hi,

 

Please do not ask why but I am just trying to set a parameter which is normally 
defined in Application.cfc this scope, in normal CFM page.

 

This parameter is new ColdFusion application layer mapping feature.

 

When we need to define an application layer mapping we can use following 
structure in Application.cfc file.

 

cfcomponent

cfset this.name = MappingsTestCFC

cfset this.mappings[/myincludes] = 
D:\Domains\mydomain\includes

/cfcomponent

 

But in my case I do not want to use Application.cfc file. The question is now 
how I can create a parameter which would be the same with this mappings 
structure?

 

Can I use CFCProxy setThisScope() method for this purpose?

 

cfset myCFCProxyObj = CreateObject(java, coldfusion.cfc.CFCProxy)

cfdump var=#myCFCProxyObj#

 

Or any alternative way to set “this” scope variables which is available in 
Application.cfc without having any Application.cfc?

 

As I said please do not ask why not using direct Application.cfc. J

 

Thanks in advance.

 

 

 

Sincerely,

 

Oğuz Demirkapı

 

Sr. Developer | TeraTech

http://www.teratech.com

 



~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285362
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


application.cfc and var

2007-08-01 Thread Chad Gray
Ok now that I have learned about declaring variables in CFCs so you don't run 
into race conditions and problems.  How about application.cfc?

Do I need to use cfset var foo =  in application.cfc?



~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285096
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: application.cfc and var

2007-08-01 Thread Raymond Camden
I assume you mean in methods. Yes.

The var rule also applies to UDFs as well.

Var now.
Var tomorrow.
Var always.

:)

On 8/1/07, Chad Gray [EMAIL PROTECTED] wrote:
 Ok now that I have learned about declaring variables in CFCs so you don't run 
 into race conditions and problems.  How about application.cfc?

 Do I need to use cfset var foo =  in application.cfc?



 

~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285104
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Help Including UDF Libraries with Application.cfc

2007-06-20 Thread Aaron Roberson
I am trying to include my UDF libraries that I use application wide in
Application.cfc but it is not working. Of coarse, I tried a simple
cfinclude template=path/to/lib/ in onRequestStart() but that did not
work.

What am I missing?

-Aaron


~|
ColdFusion 8 beta – Build next generation applications today.
Free beta download on Labs
http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281697
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cfabort triggering onError function in Application.cfc

2007-06-13 Thread Ariel Jakobovits
aborts will trigger an error inside a cfc being called as a web service.

- Original Message 
From: Jake Pilgrim [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Tuesday, June 12, 2007 5:06:18 PM
Subject: Re: cfabort triggering onError function in Application.cfc

An abort is an exception that is caught by the onError event handler. Whether 
this is a bug or a desired effect is debatable, but this does in fact happen. 
However it is easy enough to catch:

cffunction name=onError returntype=void
   cfargument name=Exception required=true/
   cfargument name=EventName type=String required=true/
   cfif arguments.exception.rootCause NEQ coldfusion.runtime.AbortException
   ... do error handling
   /cfif
/cffunction

Voila!

Jake Pilgrim

Since I
 implemented the onError function in my Application.cfc the cfabort seems
 to be triggering it.  Is this normal?  if so how do I work around this?

I'm fairly certain cfabort doesn't trigger onError;  at least I haven't seen 
that before.  You might have another error around the cfabort tag that is 
causing onError to be triggered.  If you're in a dev environment, you could 
comment out onError and cfabort for the moment and see exactly what error is 
being generated.

-- Josh



~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280942
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: cfabort triggering onError function in Application.cfc

2007-06-13 Thread Steve Good
Thanks for the help guys, I got it working using Jake's cfif statement.  
Sometimes it's the simple things that throw me off hehe.

-- 
Steve Good
[EMAIL PROTECTED]
Portal Hosting
http://www.lanctr.com


~|
Macromedia ColdFusion MX7
Upgrade to MX7  experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281097
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


cfabort triggering onError function in Application.cfc

2007-06-12 Thread Steve Good
I'm trying to catch errors and display them in a prettier way on one of 
my applications.  However part of the login script I use has a cfabort 
tag in it to stop processing until the user is authenticated.  Since I 
implemented the onError function in my Application.cfc the cfabort seems 
to be triggering it.  Is this normal?  if so how do I work around this?

Thanks!

-- 
Steve Good
[EMAIL PROTECTED]
Portal Hosting
http://www.lanctr.com


~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade  see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280893
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfabort triggering onError function in Application.cfc

2007-06-12 Thread Will Tomlinson
I'm trying to catch errors and display them in a prettier way on one of 
my applications.  However part of the login script I use has a cfabort 
tag in it to stop processing until the user is authenticated.  Since I 
implemented the onError function in my Application.cfc the cfabort seems 
to be triggering it.  Is this normal?  if so how do I work around this?

Thanks!

Yeah, that's a bug Ray blogged about. 

http://www.coldfusionjedi.com/index.cfm/2005/9/28/Two-Nice-Fixes-in-ColdFusion-701

Will

~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280895
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cfabort triggering onError function in Application.cfc

2007-06-12 Thread Josh Nathanson
Since I
 implemented the onError function in my Application.cfc the cfabort seems
 to be triggering it.  Is this normal?  if so how do I work around this?

I'm fairly certain cfabort doesn't trigger onError;  at least I haven't seen 
that before.  You might have another error around the cfabort tag that is 
causing onError to be triggered.  If you're in a dev environment, you could 
comment out onError and cfabort for the moment and see exactly what error is 
being generated.

-- Josh


~|
ColdFusion 8 beta – Build next generation applications today.
Free beta download on Labs
http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280897
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cfabort triggering onError function in Application.cfc

2007-06-12 Thread Jake Pilgrim
An abort is an exception that is caught by the onError event handler. Whether 
this is a bug or a desired effect is debatable, but this does in fact happen. 
However it is easy enough to catch:

cffunction name=onError returntype=void
   cfargument name=Exception required=true/
   cfargument name=EventName type=String required=true/
   cfif arguments.exception.rootCause NEQ coldfusion.runtime.AbortException
   ... do error handling
   /cfif
/cffunction

Voila!

Jake Pilgrim

Since I
 implemented the onError function in my Application.cfc the cfabort seems
 to be triggering it.  Is this normal?  if so how do I work around this?

I'm fairly certain cfabort doesn't trigger onError;  at least I haven't seen 
that before.  You might have another error around the cfabort tag that is 
causing onError to be triggered.  If you're in a dev environment, you could 
comment out onError and cfabort for the moment and see exactly what error is 
being generated.

-- Josh

~|
ColdFusion MX7 by Adobe®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280902
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfabort triggering onError function in Application.cfc

2007-06-12 Thread Josh Nathanson
 An abort is an exception that is caught by the onError event handler. 
 Whether this is a bug or a desired effect is debatable, but this does in 
 fact happen. However it is easy enough to catch:

Hmmm...very interesting indeed.  I just did a test, and cfabort did not seem 
to trigger onError...at least it didn't run the error handling code within 
the method...just a blank page as expected.  I need to investigate further.

-- Josh


~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7  
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280909
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Ignoring Application.cfc or .cfm

2007-06-05 Thread John P
Is there a tag I can use on my page to ignore an application.cfc in the root 
directory? 

Additionally, how many directories above the page being called will CF travel 
to look for an application.cfc or .cfm file? Will it look keep going until it 
reaches the server root directory? 

Thanks!

John

~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7  
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280119
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Ignoring Application.cfc or .cfm

2007-06-05 Thread Ben Forta
John,

Yep, all the way up. And to get it to ignore it, just add one in your own
folder.

--- Ben


-Original Message-
From: John P [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 05, 2007 12:29 PM
To: CF-Talk
Subject: Ignoring Application.cfc or .cfm

Is there a tag I can use on my page to ignore an application.cfc in the root
directory? 

Additionally, how many directories above the page being called will CF
travel to look for an application.cfc or .cfm file? Will it look keep going
until it reaches the server root directory? 

Thanks!

John



~|
Macromedia ColdFusion MX7
Upgrade to MX7  experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280121
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Ignoring Application.cfc or .cfm

2007-06-05 Thread John P
Great, thanks Ben!



John,

Yep, all the way up. And to get it to ignore it, just add one in your own
folder.

--- Ben


-Original Message-
From: John P [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 05, 2007 12:29 PM
To: CF-Talk
Subject: Ignoring Application.cfc or .cfm

Is there a tag I can use on my page to ignore an application.cfc in the root
directory? 

Additionally, how many directories above the page being called will CF
travel to look for an application.cfc or .cfm file? Will it look keep going
until it reaches the server root directory? 

Thanks!

John

~|
ColdFusion MX7 and Flex 2 
Build sales  marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280123
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Ignoring Application.cfc or .cfm

2007-06-05 Thread Claude Schneegans
 Yep, all the way up. And to get it to ignore it, just add one in your own
folder.

Exactly, but if you just want this application.cfm to just do nothing, 
make sure it contains at least one space,
because CF does not like 0 length files.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7  
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280159
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Application.cfc OnError and 404

2007-04-29 Thread John Allen
Am I correct in thinking that I CAN NOT intercept a 404 error in my
Application.cfc because ColdFusion is NOT firing the Application.cfc file
cause is dies at missing template level?

And if so, how would one handle this in a shared hosting environment where
there is no access to the ColdFusion Administrator to specify the missing
template setting?

Thanks mucho
John Allen


~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276509
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Application.dsn or request.dsn in application.cfc

2007-04-21 Thread Mike Chabot
I am converting Application.cfm to Application.cfc in a CF5 site that
is now running under CFMX7. The Application.cfm uses request.dsn to
define the data source. For Application.cfc, I have three choices:

1. Define request.dsn in OnRequestStart
2. Define request.dsn at the top of Application.cfc, outside of any function.
3. Convert request.dsn to application.dsn and put the variable in
OnApplicationStart. Write request.dsn = application.dsn inside of
OnRequestStart to maintain backwards-compatibility, and phase out the
use of request.dsn over time.

Which method would you pick? Am I missing an option?

Some of the OnApplicationStart functions make database calls, so
choice 1 isn't really an option.

Thank you,
Mike Chabot

~|
ColdFusion MX7 and Flex 2 
Build sales  marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275975
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Application.dsn or request.dsn in application.cfc

2007-04-21 Thread Barney Boisvert
I'd pick #4:

4) only do data access within CFCs, and use ColdSpring to wire the DSN
into any beans that need it.

But that's not really an upgrade kind of approach, in which case I'd
go with #3, moving as much as possible to application.dsn, and then
trying to start down the path of #4 as much as possible with future
work.

cheers,
barneyb

On 4/21/07, Mike Chabot [EMAIL PROTECTED] wrote:
 I am converting Application.cfm to Application.cfc in a CF5 site that
 is now running under CFMX7. The Application.cfm uses request.dsn to
 define the data source. For Application.cfc, I have three choices:

 1. Define request.dsn in OnRequestStart
 2. Define request.dsn at the top of Application.cfc, outside of any function.
 3. Convert request.dsn to application.dsn and put the variable in
 OnApplicationStart. Write request.dsn = application.dsn inside of
 OnRequestStart to maintain backwards-compatibility, and phase out the
 use of request.dsn over time.

 Which method would you pick? Am I missing an option?

 Some of the OnApplicationStart functions make database calls, so
 choice 1 isn't really an option.

 Thank you,
 Mike Chabot


-- 
Barney Boisvert
[EMAIL PROTECTED]
http://www.barneyb.com/

Got Gmail? I have 100 invites.

~|
ColdFusion MX7 by Adobe®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275977
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


(Resend) Application.cfc and cflocation

2007-04-03 Thread Victor Moore
I'm resending this because I'm not sure it made it to the list.

Can somebody confirm that the cflocation in Application.cfc is working fine
in CFMX 7.02?
In my case it still triggers an onError event, which sends an email and as a
result I'm overwhelmed by useless error messages. The user doesn't see
anything and the code works as expected ...

Thanks
Victor


-- Forwarded message --
From: Victor Moore [EMAIL PROTECTED]
Date: Apr 2, 2007 12:48 PM
Subject: Application.cfc and cflocation
To: cf-talk@houseoffusion.com

Hi,

I thought that the error triggered when using cflocation in
Application.cfcwas fixed in version
7.01

I'm using 7,0,2,142559  and still have the problem. It was reintroduced in
7.02? do I need to apply a specific fix for it?

Thank you
Victor


~|
ColdFusion MX7 and Flex 2 
Build sales  marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274448
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: (Resend) Application.cfc and cflocation

2007-04-03 Thread Josh Nathanson
Victor, I use cflocation in Application.cfc and it works as expected. 
However I'm using it within onError itself.  Don't know if that makes a 
difference or not, but it does work at least in the onError method.

Maybe you could post your code - there might be something else going astray.

-- Josh

- Original Message - 
From: Victor Moore [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Tuesday, April 03, 2007 8:58 AM
Subject: (Resend) Application.cfc and cflocation


 I'm resending this because I'm not sure it made it to the list.

 Can somebody confirm that the cflocation in Application.cfc is working 
 fine
 in CFMX 7.02?
 In my case it still triggers an onError event, which sends an email and as 
 a
 result I'm overwhelmed by useless error messages. The user doesn't see
 anything and the code works as expected ...

 Thanks
 Victor


 -- Forwarded message --
 From: Victor Moore [EMAIL PROTECTED]
 Date: Apr 2, 2007 12:48 PM
 Subject: Application.cfc and cflocation
 To: cf-talk@houseoffusion.com

 Hi,

 I thought that the error triggered when using cflocation in
 Application.cfcwas fixed in version
 7.01

 I'm using 7,0,2,142559  and still have the problem. It was reintroduced in
 7.02? do I need to apply a specific fix for it?

 Thank you
 Victor


 

~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7  
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274450
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: (Resend) Application.cfc and cflocation

2007-04-03 Thread Victor Moore
Thank Josh,

The code is in onRequestStart and it works, I mean it redirects the user,
but also triggers onError event.
It seems that it was a problem with using cflocation in Application.cfc and
was fixed in 7.01, at least this is what I have read on Ray blog.
Anyway this is the offending code:
cfif cgi.server_port neq 443
cfset newURL = https://;  cgi.http_host  cgi.path_info
 cfif len (cgi.query_string) gt 0
   cfset newURL = newURL  ?  cgi.query_string
 /cfif
 cflocation url='#newURL#' addtoken=no
/cfif
The line being reported onError is the line with cflocation

Thanks
Victor
On 4/3/07, Josh Nathanson [EMAIL PROTECTED] wrote:

 Victor, I use cflocation in Application.cfc and it works as expected.
 However I'm using it within onError itself.  Don't know if that makes a
 difference or not, but it does work at least in the onError method.

 Maybe you could post your code - there might be something else going
 astray.

 -- Josh

 --
 
  -- Forwarded message --
  From: Victor Moore [EMAIL PROTECTED]
  Date: Apr 2, 2007 12:48 PM
  Subject: Application.cfc and cflocation
  To: cf-talk@houseoffusion.com
 
  Hi,
 
  I thought that the error triggered when using cflocation in
  Application.cfcwas fixed in version
  7.01
 
  I'm using 7,0,2,142559  and still have the problem. It was reintroduced
 in
  7.02? do I need to apply a specific fix for it?
 
  Thank you
  Victor




~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274451
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: (Resend) Application.cfc and cflocation

2007-04-03 Thread Josh Nathanson
 The line being reported onError is the line with cflocation

What is the error that is being reported?

~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274452
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: (Resend) Application.cfc and cflocation

2007-04-03 Thread Victor Moore
An exception occurred when invoking a event handler method from
Application.cfc The method name is: onRequestStart.
Event Handler Exception.
coldfusion.runtime.AbortException

On 4/3/07, Josh Nathanson [EMAIL PROTECTED] wrote:

  The line being reported onError is the line with cflocation

 What is the error that is being reported?

 

~|
Create Web Applications With ColdFusion MX7  Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274454
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: (Resend) Application.cfc and cflocation

2007-04-03 Thread Josh Nathanson
H...interesting.  There is something going on there in the guts of the 
method that doesn't like cflocation in onRequestStart.  Perhaps it's because 
there is the potential there for an infinite loop.  Maybe someone with a 
better understanding of what's going on under the hood can help you out. 
Sorry I can't be of more help.

-- Josh


- Original Message - 
From: Victor Moore [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Tuesday, April 03, 2007 9:53 AM
Subject: Re: (Resend) Application.cfc and cflocation


 An exception occurred when invoking a event handler method from
 Application.cfc The method name is: onRequestStart.
 Event Handler Exception.
 coldfusion.runtime.AbortException

 On 4/3/07, Josh Nathanson [EMAIL PROTECTED] wrote:

  The line being reported onError is the line with cflocation

 What is the error that is being reported?



 

~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade  see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274459
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: (Resend) Application.cfc and cflocation

2007-04-03 Thread Dave Watts
 An exception occurred when invoking a event handler method from
 Application.cfc The method name is: onRequestStart.
 Event Handler Exception.
 coldfusion.runtime.AbortException

Actually, that looks like a perfectly valid exception to throw, I guess. I
don't know anything about whether it was supposed to have been fixed, but
why not just catch it in your onError and discard it silently?

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

This email has been processed by SmoothZap - www.smoothwall.net


~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade  see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274461
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: (Resend) Application.cfc and cflocation

2007-04-03 Thread Jake Pilgrim
coldfusion.runtime.AbortException suggests the execution of a CFABORT tag 
somewhere. I'm guessing you forgot about a CFABORT tag during development - 
probably on your include page. 

Now in our shop, we occasionally throw cfaborts for valid reasons (like a user 
trying to access a protected area). So in our onError function, we pitch these 
errors right out the window:

cfif structkeyexists(arguments.exception,'rootCause') and 
arguments.exception.rootCause.Type EQ coldfusion.runtime.AbortException
   cfreturn /
/cfif


Hope that helps...

Jake Pilgrim

~|
ColdFusion MX7 by Adobe®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274468
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: (Resend) Application.cfc and cflocation

2007-04-03 Thread Victor Moore
Well, according to this, it should be fixed:
http://ray.camdenfamily.com/index.cfm/2005/9/28/Two-Nice-Fixes-in-ColdFusion-701

I guess it was one of those bugs that was not acknowledged, then fixed and
now re-appeared.
I took Dave's suggestion and it works OK for now.

Thanks
Victor

On 4/3/07, Dave Watts [EMAIL PROTECTED] wrote:

  An exception occurred when invoking a event handler method from
  Application.cfc The method name is: onRequestStart.
  Event Handler Exception.
  coldfusion.runtime.AbortException

 Actually, that looks like a perfectly valid exception to throw, I guess. I
 don't know anything about whether it was supposed to have been fixed, but
 why not just catch it in your onError and discard it silently?

 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/

 Fig Leaf Software provides the highest caliber vendor-authorized
 instruction at our training centers in Washington DC, Atlanta,
 Chicago, Baltimore, Northern Virginia, or on-site at your location.
 Visit http://training.figleaf.com/ for more information!

 This email has been processed by SmoothZap - www.smoothwall.net


 

~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade  see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274472
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Application.cfc and cflocation

2007-04-02 Thread Victor Moore
Hi,

I thought that the error triggered when using cflocation in
Application.cfcwas fixed in version
7.01

I'm using 7,0,2,142559  and still have the problem. It was reintroduced in
7.02? do I need to apply a specific fix for it?

Thank you
Victor


~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade  see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274328
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Extending Application.cfc

2007-03-29 Thread Jen N
I was hoping to get some help on Extending Application.cfc's to subfolders.  We 
have researched and seen this has been discussed in great length, but have yet 
to find a solution that works.

Many are the same type of idea, but here's one from Adobe
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=9ce734f4

We downloaded the source files and here's where the root folder seems to be an 
issue.  OUr whole application is at a coule folders down, meaning:

wwwroot/testfolder/user/username/OurApplication/

We also have our subfolders something like this:

wwwroot/testfolder/user/username/OurApplication/subfolder1/subfolder2/

We have our root Application.cfc at the OurApplication folder. and then we 
have our mini Application, with its own Application.cfc at the subfolder2 
level.  

When we try to use cfcomponent extends. . .  it can't find the root 
Application.cfc.  Of course if we COULD move our root folder to the 'wwwroot' 
it works fine.  Unfortunately that is not an option.  

We really can't hardcode the path either, because of the various instances we 
have of this for development (several developers), our validation, testing, 
etc.  That is also the same reason mapping isn't a feasible solution.  

Is there any other way we can extend the root Application.cfc to the 
subfolders under the current structure?

~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade  see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274156
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Extending Application.cfc

2007-03-29 Thread Will Tomlinson
One thing I do is use a proxyApplication.cfc in the root that extends the root 
application.cfc. 

Then in the subfolder app.cfc's, extend them to 
testfolder.user.username.yourapp.proxyApplication

Or could you create a mapping to it?


Will

~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7  
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274161
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Extending Application.cfc

2007-03-29 Thread Dan Vega
I use a similar approach to will. I have actually put together a short
article on my approach if you are interested in reading more about it.

http://www.danvega.org/blog/index.cfm/2006/7/25/Application-Inheritance

Dan

On 3/29/07, Will Tomlinson [EMAIL PROTECTED] wrote:

 One thing I do is use a proxyApplication.cfc in the root that extends the
 root application.cfc.

 Then in the subfolder app.cfc's, extend them to
 testfolder.user.username.yourapp.proxyApplication

 Or could you create a mapping to it?


 Will

 

~|
Macromedia ColdFusion MX7
Upgrade to MX7  experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274163
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Extending Application.cfc

2007-03-29 Thread Will Tomlinson
Right, sean's the one that told me to do it like that. Good advice, seems to 
work perfectly. 

Will

~|
Create Web Applications With ColdFusion MX7  Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274166
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Extending Application.cfc

2007-03-29 Thread Jen N
Thanks guys!  I must apologize as I was trying to condense post. . . but we 
have actually tried these exact methods.

Let me give you a better idea of our folder structure:

wwwroot
  - testfolder
  - user
- username1
  - OurApplication
  - subfolder1
  - subfolder2
 - Application.cfc
  - subfolder3
  - Application.cfc
  - ApplicationProxy.cfc
- username2
- username3
  - testfolder2
  - testfolder3
 
So we have tried using the Proxy file and that uses cfextends to grab the 
OurApplication root Application.cfc file.  The problem is it still tells us it 
can't find the ApplicationProxy component.  However if we move the whole 
OurApplication folder to the wwwroot level (equal to tesfolder, testfolder2, 
testfolder3, etc) it works fine.  So it appears that our application would have 
to reside at the wwwroot folder to use this method, which isn't possible for us.

I'm not very familiar with mapping. . . would we have to do one for ever 
username folder?  Each username has its own instance of the the application for 
testing and development (since we are developing lots of subapplications at one 
time).  Obviously if we had to map for every possibility and as we move through 
the life cycle that would be difficult.

Anyway thanks for the help all.  The articles have been very halpful and 
hopefully we're on the right track. . . its just a matter of figuring out how 
to make it work for those root Application.cfcs that are lower than the 
root folder.

~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7  
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274168
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Application.cfc and missing templates

2007-03-20 Thread Jones Eric R Ctr 8 AF Det 1/AFNOC
Why doesn't the Application.cfc file run when a template isn't found?

Anyone know how to catch these WITHOUT using the missing template
handler in CF Administrator???

I had a solution using CFERROR tags in application.cfm but since
application.cfc isn't running nothing executes.

---_

Eric R. Jones
Senior Web Application Developer, AFNOC/NCD
Barksdale AFB, LA
DSN 781-7784
Comm (318) 456-7784
NIPRNET: [EMAIL PROTECTED]
SIPRNET: [EMAIL PROTECTED] 


~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273163
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Application.cfc and missing templates

2007-03-20 Thread Jochem van Dieten
Jones Eric R Ctr 8 AF Det 1/AFNOC wrote:
 Why doesn't the Application.cfc file run when a template isn't found?

Because technically the constructor code of Application.cfc is included 
in the template and that is a bit hard when the template isn't present.


 Anyone know how to catch these WITHOUT using the missing template
 handler in CF Administrator???

The missing templates handler in your webserver.

Jochem

~|
Macromedia ColdFusion MX7
Upgrade to MX7  experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273171
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Application.cfc and Client Variables

2007-03-17 Thread Randy Johnson
Hello,

Here is the code I have at the top of my Application.cfc file:

cfcomponent output=false
cfset this.Name=Threader1
cfset this.sessionManagement = true
cfset this.clientManagement = true

In my Queue.cfc file I am getting this error when trying to use a client 
variable:
The requested CLIENT scope is not enabled.
The Application.cfc file and the Queue.cfc file are in the same directory.

In my ViewVariables.cfm page I can do a cfdump var=#CLIENT# label=Client 
Scope  and it will show client variables
I am not sure what is going on here, It looks pretty straight forward.  Any 
ideas?
Thanks!

Randy 


~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade  see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272910
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: php equivalent of application.cfc

2007-03-03 Thread Peter Boughton
Uh, $50 a month is £308 a year.

The £200 a year Tom asked for is $32 a month.


$50(USD) a month will get you pretty good CF hosting at a lot of places...

Sunshinetechsolutions.com
Hostnexus.com

Those are 2 good hosts...

Eric

-Original Message-
From: Tom King [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 02, 2007 8:40 AM
To: CF-Talk
Subject: Re: php equivalent of application.cfc

Heh,
Can you 60 gigs a month bandwidth, 25 gigs webspace, with CF for less  
than £200 PA?

T
On 2 Mar 2007, at 13:26, Peter Boughton wrote:

~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7  
Flex 2. 
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271396
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: php equivalent of application.cfc

2007-03-03 Thread Tom King
Thanks all  - the htacess trickery is worth a punt I feel !

T

On 3 Mar 2007, at 10:45, Peter Boughton wrote:

 Uh, $50 a month is £308 a year.

 The £200 a year Tom asked for is $32 a month.


 $50(USD) a month will get you pretty good CF hosting at a lot of  
 places...

 Sunshinetechsolutions.com
 Hostnexus.com

 Those are 2 good hosts...

 Eric

 -Original Message-
 From: Tom King [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 02, 2007 8:40 AM
 To: CF-Talk
 Subject: Re: php equivalent of application.cfc

 Heh,
 Can you 60 gigs a month bandwidth, 25 gigs webspace, with CF for less
 than £200 PA?

 T
 On 2 Mar 2007, at 13:26, Peter Boughton wrote:

 

~|
ColdFusion MX7 and Flex 2 
Build sales  marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271399
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


OT: php equivalent of application.cfc

2007-03-02 Thread Tom King
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

~|
ColdFusion MX7 and Flex 2 
Build sales  marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271256
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: OT: php equivalent of application.cfc

2007-03-02 Thread Robertson-Ravo, Neil (RX)
Ask on a PHP list I would say







This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant,
Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions. 
Visit our website at http://www.reedexpo.com

-Original Message-
From: Tom King
To: CF-Talk
Sent: Fri Mar 02 11:35:43 2007
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



~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7  
Flex 2. 
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271257
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: php equivalent of application.cfc

2007-03-02 Thread Peter Boughton
There isn't one.

You can mimic it with Apache stuff - but why bother when its far better to 
stick to the glorious CFML and not have to worry about stuff like this.

Perhaps you could say why you want to use PHP, so we can convince you that your 
reasons are worthless and you should stay with us. ;)


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
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271260
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: OT: php equivalent of application.cfc

2007-03-02 Thread Rob Wilkerson
Hey Tom -

It's been a couple of years (like 5), but as of PHP 4, there was a
setting in php.ini that allowed you to define a file that would be
called before every request the way Application.cfm is called.  You
have to define it explicitly, but it behaves exactly the same way, in
my experience.  That file can include custom functions.
Unfortunately, I can't remember the setting offhand.

On 3/2/07, Tom King [EMAIL PROTECTED] wrote:
 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

 

~|
Create Web Applications With ColdFusion MX7  Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271262
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: php equivalent of application.cfc

2007-03-02 Thread Tom King
heheh,

Not my choice, working on a site where they can't afford to move the  
hosting...
If it was my choice, I'd rewrite the damn thing from scratch in CF
T

On 2 Mar 2007, at 11:24, Peter Boughton wrote:

 There isn't one.

 You can mimic it with Apache stuff - but why bother when its far  
 better to stick to the glorious CFML and not have to worry about  
 stuff like this.

 Perhaps you could say why you want to use PHP, so we can convince  
 you that your reasons are worthless and you should stay with us. ;)


 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

 

~|
ColdFusion MX7 and Flex 2 
Build sales  marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271263
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: OT: php equivalent of application.cfc

2007-03-02 Thread Tom King
That sounds like the sort of thing I'm after...

Will now have to see if I can get to the ini file on shared hosting :(
T


On 2 Mar 2007, at 13:01, Rob Wilkerson wrote:

 Hey Tom -

 It's been a couple of years (like 5), but as of PHP 4, there was a
 setting in php.ini that allowed you to define a file that would be
 called before every request the way Application.cfm is called.  You
 have to define it explicitly, but it behaves exactly the same way, in
 my experience.  That file can include custom functions.
 Unfortunately, I can't remember the setting offhand.

 On 3/2/07, Tom King [EMAIL PROTECTED] wrote:
 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



 

~|
ColdFusion MX7 by Adobe®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271264
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: php equivalent of application.cfc

2007-03-02 Thread Rick Root
On 3/2/07, Tom King [EMAIL PROTECTED] wrote:


 Not my choice, working on a site where they can't afford to move the
 hosting...
 If it was my choice, I'd rewrite the damn thing from scratch in CF


I did a fair amount of PHP work between 6 and 3 years ago.

I usually refuse PHP work now if offered to me.  I just don't have the
interest in struggling with things that are so simple in Coldfusion.

Rick

-- 
 I'm not certified, but I have been told that I'm certifiable...
 Visit http://www.opensourcecf.com today!


~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271266
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: OT: php equivalent of application.cfc

2007-03-02 Thread Tom Chiverton
On Friday 02 Mar 2007, Tom King wrote:
 I.e, I want to be able to do this, without having to put the includes
 in every file:

Every PHP app I've looked at has an include_once() at the top of each file :-/

-- 
Tom Chiverton
Helping to augmentatively transition revolutionary segments
On: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.


~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7  
Flex 2. 
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271270
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: OT: php equivalent of application.cfc

2007-03-02 Thread Rob Wilkerson
That could work (as would the related require_once() function), but
it's maintenance-intensive since it has to be explicitly included on
every page.  Look at the auto_prepend_file directive in php.ini (I
looked it up and I think that's what I was referring to in my earlier
post).  If you need something to emulate OnRequestEnd.cfm, try
auto_append_file.

Hope this helps.

On 3/2/07, Tom Chiverton [EMAIL PROTECTED] wrote:
 On Friday 02 Mar 2007, Tom King wrote:
  I.e, I want to be able to do this, without having to put the includes
  in every file:

 Every PHP app I've looked at has an include_once() at the top of each file :-/

 --
 Tom Chiverton
 Helping to augmentatively transition revolutionary segments
 On: http://thefalken.livejournal.com

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England and 
 Wales under registered number OC307980 whose registered office address is at 
 St James's Court Brown Street Manchester M2 2JF.  A list of members is 
 available for inspection at the registered office. Any reference to a partner 
 in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by 
 the Law Society.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and may 
 be confidential or legally privileged.  If you are not the addressee you must 
 not read it and must not use any information contained in nor copy it nor 
 inform any person other than Halliwells LLP or the addressee of its existence 
 or contents.  If you have received this email in error please delete it and 
 notify Halliwells LLP IT Department on 0870 365 8008.

 For more information about Halliwells LLP visit www.halliwells.com.


 

~|
Create Web Applications With ColdFusion MX7  Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271271
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: php equivalent of application.cfc

2007-03-02 Thread Randy Johnson
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


Re: OT: php equivalent of application.cfc

2007-03-02 Thread Tom Chiverton
On Friday 02 Mar 2007, Rob Wilkerson wrote:
 That could work (as would the related require_once() function), but
 it's maintenance-intensive since it has to be explicitly included on
 every page. 

OTTOMH:
find . -name '*.php' -exec cp {} {}.1;cat header.php {}.1  {} \; 

:-)

-- 
Tom Chiverton
Helping to simultaneously innovate B2C environments
On: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.


~|
ColdFusion MX7 by Adobe®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271279
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: OT: php equivalent of application.cfc

2007-03-02 Thread Rob Wilkerson
Ugh.  :-)

On 3/2/07, Tom Chiverton [EMAIL PROTECTED] wrote:
 On Friday 02 Mar 2007, Rob Wilkerson wrote:
  That could work (as would the related require_once() function), but
  it's maintenance-intensive since it has to be explicitly included on
  every page.

 OTTOMH:
 find . -name '*.php' -exec cp {} {}.1;cat header.php {}.1  {} \;

 :-)

 --
 Tom Chiverton
 Helping to simultaneously innovate B2C environments
 On: http://thefalken.livejournal.com

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England and 
 Wales under registered number OC307980 whose registered office address is at 
 St James's Court Brown Street Manchester M2 2JF.  A list of members is 
 available for inspection at the registered office. Any reference to a partner 
 in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by 
 the Law Society.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and may 
 be confidential or legally privileged.  If you are not the addressee you must 
 not read it and must not use any information contained in nor copy it nor 
 inform any person other than Halliwells LLP or the addressee of its existence 
 or contents.  If you have received this email in error please delete it and 
 notify Halliwells LLP IT Department on 0870 365 8008.

 For more information about Halliwells LLP visit www.halliwells.com.


 

~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271282
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: OT: php equivalent of application.cfc

2007-03-02 Thread Tom King
hehe, so glad I don't have to deal with this on a regular basis -  
thanks for the tips!
T

On 2 Mar 2007, at 14:05, Rob Wilkerson wrote:

 Ugh.  :-)

 On 3/2/07, Tom Chiverton [EMAIL PROTECTED] wrote:
 On Friday 02 Mar 2007, Rob Wilkerson wrote:
 That could work (as would the related require_once() function), but
 it's maintenance-intensive since it has to be explicitly included on
 every page.

 OTTOMH:
 find . -name '*.php' -exec cp {} {}.1;cat header.php {}.1  {} \;

 :-)

 --
 Tom Chiverton
 Helping to simultaneously innovate B2C environments
 On: http://thefalken.livejournal.com

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in  
 England and Wales under registered number OC307980 whose  
 registered office address is at St James's Court Brown Street  
 Manchester M2 2JF.  A list of members is available for inspection  
 at the registered office. Any reference to a partner in relation  
 to Halliwells LLP means a member of Halliwells LLP. Regulated by  
 the Law Society.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named  
 above and may be confidential or legally privileged.  If you are  
 not the addressee you must not read it and must not use any  
 information contained in nor copy it nor inform any person other  
 than Halliwells LLP or the addressee of its existence or  
 contents.  If you have received this email in error please delete  
 it and notify Halliwells LLP IT Department on 0870 365 8008.

 For more information about Halliwells LLP visit www.halliwells.com.




 

~|
Macromedia ColdFusion MX7
Upgrade to MX7  experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271285
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: php equivalent of application.cfc

2007-03-02 Thread Peter Boughton
Ah, I think that was the thing I was referring to with my Apache comment.

Didn't realise it was actually a php.ini thing.

That could work (as would the related require_once() function), but
it's maintenance-intensive since it has to be explicitly included on
every page.  Look at the auto_prepend_file directive in php.ini (I
looked it up and I think that's what I was referring to in my earlier
post).  If you need something to emulate OnRequestEnd.cfm, try
auto_append_file.

Hope this helps.

On 3/2/07, Tom Chiverton [EMAIL PROTECTED] wrote:


~|
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:271287
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: php equivalent of application.cfc

2007-03-02 Thread Peter Boughton
Ah, interesting... Did you see my survey about potential low-cost CFML hosting?

/cheeky-plug

:)

heheh,

Not my choice, working on a site where they can't afford to move the  
hosting...
If it was my choice, I'd rewrite the damn thing from scratch in CF
T

On 2 Mar 2007, at 11:24, Peter Boughton wrote:



~|
Create Web Applications With ColdFusion MX7  Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271288
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: php equivalent of application.cfc

2007-03-02 Thread Tom King
Heh,
Can you 60 gigs a month bandwidth, 25 gigs webspace, with CF for less  
than £200 PA?

T
On 2 Mar 2007, at 13:26, Peter Boughton wrote:

 Ah, interesting... Did you see my survey about potential low-cost  
 CFML hosting?

 /cheeky-plug

 :)

 heheh,

 Not my choice, working on a site where they can't afford to move the
 hosting...
 If it was my choice, I'd rewrite the damn thing from scratch in CF
 T

 On 2 Mar 2007, at 11:24, Peter Boughton wrote:



 

~|
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:271292
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: php equivalent of application.cfc

2007-03-02 Thread Andy Matthews
I just asked two pro level PHP developers I used to work with and they both 
said there is no automatic way of including a file. Only way is to have an 
explicit include call.

-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



~|
Macromedia ColdFusion MX7
Upgrade to MX7  experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271304
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: php equivalent of application.cfc

2007-03-02 Thread Rob Wilkerson
Don't know what to tell them, but I've done it.  At least with PHP
4.x.  I've included the php.ini doc.  Search for auto_prepend_file.
The second hit describes what it does.

http://de3.php.net/manual/en/ini.core.php

On 3/2/07, Andy Matthews [EMAIL PROTECTED] wrote:
 I just asked two pro level PHP developers I used to work with and they both 
 said there is no automatic way of including a file. Only way is to have an 
 explicit include call.

~|
ColdFusion MX7 by Adobe®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271307
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: php equivalent of application.cfc

2007-03-02 Thread Kevin Aebig
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


Re: php equivalent of application.cfc

2007-03-02 Thread Christopher Jordan
Yeah, I've done that too. It's something you have to set up in your 
php.ini file. I used it to act like application.cfm (instead of 
application.cfc).. it worked like a champ. Hopefully, I won't have to 
work on another PHP project for a long time. Viva la ColdFusion! :o)

Cheers,
Chris

Rob Wilkerson wrote:
 Don't know what to tell them, but I've done it.  At least with PHP
 4.x.  I've included the php.ini doc.  Search for auto_prepend_file.
 The second hit describes what it does.

 http://de3.php.net/manual/en/ini.core.php

 On 3/2/07, Andy Matthews [EMAIL PROTECTED] wrote:
   
 I just asked two pro level PHP developers I used to work with and they both 
 said there is no automatic way of including a file. Only way is to have an 
 explicit include call.
 

 

~|
ColdFusion MX7 by Adobe®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271311
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: php equivalent of application.cfc

2007-03-02 Thread Christopher Jordan
In fact, here are the two lines I included in my php.ini file (which on 
my fadoracore4 system is located in /etc)

; Automatically add files before or after any PHP document.
auto_prepend_file = application.inc.php
auto_append_file  = onrequestend.inc.php


I named the files anything I wanted and I included the .inc to remind me 
that they were include files. Then I just named them after their 
coldfusion counterparts.

Have fun, and educate your pro level PHP developers. ;o)

Cheers,
Chris

Rob Wilkerson wrote:
 Don't know what to tell them, but I've done it.  At least with PHP
 4.x.  I've included the php.ini doc.  Search for auto_prepend_file.
 The second hit describes what it does.

 http://de3.php.net/manual/en/ini.core.php

 On 3/2/07, Andy Matthews [EMAIL PROTECTED] wrote:
   
 I just asked two pro level PHP developers I used to work with and they both 
 said there is no automatic way of including a file. Only way is to have an 
 explicit include call.
 

 

~|
Create Web Applications With ColdFusion MX7  Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271312
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: php equivalent of application.cfc

2007-03-02 Thread Kevin Aebig
Most shared hosts disable those entries. In other words, your code is no
longer easily deployed to another server. 

His pro level PHP developers will probably agree... =]

!k

-Original Message-
From: Christopher Jordan [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 02, 2007 9:57 AM
To: CF-Talk
Subject: Re: php equivalent of application.cfc

In fact, here are the two lines I included in my php.ini file (which on 
my fadoracore4 system is located in /etc)

; Automatically add files before or after any PHP document.
auto_prepend_file = application.inc.php
auto_append_file  = onrequestend.inc.php


I named the files anything I wanted and I included the .inc to remind me 
that they were include files. Then I just named them after their 
coldfusion counterparts.

Have fun, and educate your pro level PHP developers. ;o)

Cheers,
Chris

Rob Wilkerson wrote:
 Don't know what to tell them, but I've done it.  At least with PHP
 4.x.  I've included the php.ini doc.  Search for auto_prepend_file.
 The second hit describes what it does.

 http://de3.php.net/manual/en/ini.core.php

 On 3/2/07, Andy Matthews [EMAIL PROTECTED] wrote:
   
 I just asked two pro level PHP developers I used to work with and they
both said there is no automatic way of including a file. Only way is to have
an explicit include call.
 

 



~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271314
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


<    1   2   3   4   5   6   7   8   >