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.

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

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

Re: Migrating to Application.cfc

2008-04-10 Thread Barney Boisvert
: 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

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

Re: Migrating to Application.cfc

2008-04-10 Thread Barney Boisvert
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

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,

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

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,

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

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

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

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

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

2007-10-25 Thread Adalberto Gallardo
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

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

RE: stop requests of images via application.cfc

2007-10-19 Thread Dale Fraser
] 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 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

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

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

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

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

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

RE: Application.cfc adding whitespace

2007-09-03 Thread Bobby Hartsfield
..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. 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

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

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

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

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

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

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

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/

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

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.

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

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

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

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

Re: application.cfc question

2007-08-27 Thread Crow T. Robot
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

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

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

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

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

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

Re: application.cfc and var

2007-08-01 Thread Raymond Camden
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

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

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

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

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

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

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

Re: cfabort triggering onError function in Application.cfc

2007-06-12 Thread Jake Pilgrim
=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

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

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

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

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

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!

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

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

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

2007-04-21 Thread Barney Boisvert
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

(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

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

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

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

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

Re: (Resend) Application.cfc and cflocation

2007-04-03 Thread Josh Nathanson
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

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

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

Re: (Resend) Application.cfc and cflocation

2007-04-03 Thread Victor Moore
, 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

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

Extending Application.cfc

2007-03-29 Thread Jen N
/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

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

Re: Extending Application.cfc

2007-03-29 Thread Dan Vega
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

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

Re: Extending Application.cfc

2007-03-29 Thread Jen N
- 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

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

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

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

Re: php equivalent of application.cfc

2007-03-03 Thread Peter Boughton
] 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

Re: php equivalent of application.cfc

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

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

Re: OT: php equivalent of application.cfc

2007-03-02 Thread Robertson-Ravo, Neil (RX)
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

Re: php equivalent of application.cfc

2007-03-02 Thread Peter Boughton
. ;) 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

Re: OT: php equivalent of application.cfc

2007-03-02 Thread Rob Wilkerson
. 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

Re: php equivalent of application.cfc

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

Re: OT: php equivalent of application.cfc

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

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

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:

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

Re: php equivalent of application.cfc

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

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

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

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

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

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

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

RE: php equivalent of application.cfc

2007-03-02 Thread Andy Matthews
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

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

RE: php equivalent of application.cfc

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

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

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

RE: php equivalent of application.cfc

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

<    1   2   3   4   5   6   7   8   >