Getting the date next (Saturday)

2014-02-02 Thread Mike K
I have a schedule function, where i need to display the date and time of hte next occurance of an event, that is scheduled every dayofweek at time for example, one event is every Saturday (day='7') at midnight. Another event is every Sunday (day=1') at 9pm. How can i calculate the date of the

Re: Getting the date next (Saturday)

2014-02-02 Thread Azadi Saryev
This should to the trick: http://cflib.org/udf/NextOccOfDOW On Sun, Feb 2, 2014 at 8:10 PM, Mike K afpwebwo...@gmail.com wrote: I have a schedule function, where i need to display the date and time of hte next occurance of an event, that is scheduled every dayofweek at time for

cflocation mystery

2014-02-02 Thread Rob Voyle
Hi Folks I have a basic .html site that I have converted to a coldfusion site. since there are many old .html links out there I added the following to my notFound.cfm file: cfif notFoundUrl contains .html cfset newUrl=http://www.mydomain.com; replace(notFoundUrl,.html,.cfm)

Re: cflocation mystery

2014-02-02 Thread Timothy Heald
It's no mystery, that's the correct response. Trap the 404 error for html files at the web server and handle the cf side through either site wide or per application error handling. On Feb 2, 2014 11:42 AM, Rob Voyle robvo...@voyle.com wrote: Hi Folks I have a basic .html site that I have

Re: cflocation mystery

2014-02-02 Thread Timothy Heald
And that's not what you're asking at all On Feb 2, 2014 11:42 AM, Rob Voyle robvo...@voyle.com wrote: Hi Folks I have a basic .html site that I have converted to a coldfusion site. since there are many old .html links out there I added the following to my notFound.cfm file: cfif

Re: cflocation mystery

2014-02-02 Thread Timothy Heald
What's the error message? On Feb 2, 2014 11:42 AM, Rob Voyle robvo...@voyle.com wrote: Hi Folks I have a basic .html site that I have converted to a coldfusion site. since there are many old .html links out there I added the following to my notFound.cfm file: cfif notFoundUrl contains

Re: cflocation mystery

2014-02-02 Thread Rob Voyle
Hi Timothy Instead of redirecting to: mydomain.com cflocation url=http://www.mydomain.com; It is throwing an error rather than redirecting. How do I redirect? Rob On 2 Feb 2014 at 11:56, Timothy Heald wrote: It's no mystery, that's the correct response. Trap the 404 error for html

Re: cflocation mystery

2014-02-02 Thread Timothy Heald
What's the error? On Feb 2, 2014 12:09 PM, Rob Voyle robvo...@voyle.com wrote: Hi Timothy Instead of redirecting to: mydomain.com cflocation url=http://www.mydomain.com; It is throwing an error rather than redirecting. How do I redirect? Rob On 2 Feb 2014 at 11:56, Timothy Heald

Re: cflocation mystery

2014-02-02 Thread Russ Michaels
you firstly are trying to use fileExists on a URL, so it will always fail, fileExists requires an absolute path on the server see here: https://learn.adobe.com/wiki/display/coldfusionen/fileexists secondly an html page will never reach coldfusion, because it is an html page, so cfml code will

Re: cflocation mystery

2014-02-02 Thread Timothy Heald
Add the file. Like index.cfm our what ever On Feb 2, 2014 12:09 PM, Rob Voyle robvo...@voyle.com wrote: Hi Timothy Instead of redirecting to: mydomain.com cflocation url=http://www.mydomain.com; It is throwing an error rather than redirecting. How do I redirect? Rob On 2 Feb 2014 at

Re: cflocation mystery

2014-02-02 Thread Rob Voyle
Hi Timothy Which log would the error be in. I can't find the error in any of the logs. The site is public and only displays a generic error template rather than the specific error. Rob On 2 Feb 2014 at 11:58, Timothy Heald wrote: What's the error message? On Feb 2, 2014 11:42 AM, Rob

Re: cflocation mystery

2014-02-02 Thread Timothy Heald
We don't know what's on the variable, and it's working through the first half of the condition it sounds like. Can you cflocate to the tld or do you require a filename? On Feb 2, 2014 12:12 PM, Russ Michaels r...@michaels.me.uk wrote: you firstly are trying to use fileExists on a URL, so it

Re: cflocation mystery

2014-02-02 Thread Timothy Heald
What version of cf? On Feb 2, 2014 12:19 PM, Rob Voyle robvo...@voyle.com wrote: Hi Timothy Which log would the error be in. I can't find the error in any of the logs. The site is public and only displays a generic error template rather than the specific error. Rob On 2 Feb 2014 at

Re: cflocation mystery

2014-02-02 Thread Cameron Childress
fileExists() accepts a filename on the filesystem, not a URL. -Cameron On Sun, Feb 2, 2014 at 11:41 AM, Rob Voyle robvo...@voyle.com wrote: Hi Folks I have a basic .html site that I have converted to a coldfusion site. since there are many old .html links out there I added the following

Re: cflocation mystery

2014-02-02 Thread Timothy Heald
Looks like newurl isn't a url, rather a path, it's appended to the domain name. On Feb 2, 2014 12:35 PM, Cameron Childress camer...@gmail.com wrote: fileExists() accepts a filename on the filesystem, not a URL. -Cameron On Sun, Feb 2, 2014 at 11:41 AM, Rob Voyle robvo...@voyle.com wrote:

Re: cflocation mystery

2014-02-02 Thread Timothy Heald
Nope, read that wrong. On Feb 2, 2014 12:39 PM, timothy.he...@gmail.com wrote: Looks like newurl isn't a url, rather a path, it's appended to the domain name. On Feb 2, 2014 12:35 PM, Cameron Childress camer...@gmail.com wrote: fileExists() accepts a filename on the filesystem, not a URL.

Re: cflocation mystery

2014-02-02 Thread Bobby
Exception.log On 2/2/14, 12:18 PM, Rob Voyle robvo...@voyle.com wrote: Hi Timothy Which log would the error be in. I can't find the error in any of the logs. The site is public and only displays a generic error template rather than the specific error. Rob On 2 Feb 2014 at 11:58, Timothy

Re: cflocation mystery- solved

2014-02-02 Thread Rob Voyle
Thanks guys needed the absolute path in fileExist Rob ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

Re: cflocation mystery- solved

2014-02-02 Thread Brian Cain
You should also be retiring a 301 status code to the client. This makes a difference for SEO purposes. In CF7 or before you would need to use the cfheader tag. CF8 and on, you can add the status code attribute to the cflocation tag. Sent from my iPhone On Feb 2, 2014, at 11:51 AM, Rob