I found a way to cheat HostMySite's 1 domain per account set up. What this
does is it checks the URL for the domain typed and it redirects it to a
directory specific for that domain. That way I am able to host all my sites
with the CF+ Builder package. My question is...I was about to achieve this
)
-Original Message-
From: [STS] Ravi Gehlot [mailto:[EMAIL PROTECTED]
Sent: Monday, April 14, 2008 8:57 AM
To: CF-Talk
Subject: Using tags with CFSCRIPT
I found a way to cheat HostMySite's 1 domain per account set up. What this
does is it checks the URL for the domain typed
Variable CFLOCATION is undefined.
The error occurred in C:\Websites\156945dm2\index.cfm: line 4
2 : cfscript
3 : switch(cgi.http_host) {
4 : case
'www.brightWebWorks.com':cflocation(theURL:'brightWebWorks.com/'); break;
5 :
6 : }
On Mon, Apr 14, 2008 at 9:13 AM, [STS] Ravi Gehlot
[EMAIL
--
Scott Stewart
ColdFusion Developer
SSTWebworks
4405 Oakshyre Way
Raleigh, NC. 27616
(919) 874-6229 (home)
(703) 220-2835 (cell)
-Original Message-
From: [STS] Ravi Gehlot [mailto:[EMAIL PROTECTED]
Sent: Monday, April 14, 2008 8:57 AM
To: CF-Talk
Subject: Using tags with CFSCRIPT
I found
)
-Original Message-
From: [STS] Ravi Gehlot [mailto:[EMAIL PROTECTED]
Sent: Monday, April 14, 2008 9:29 AM
To: CF-Talk
Subject: Re: Using tags with CFSCRIPT
Variable CFLOCATION is undefined.
The error occurred in C:\Websites\156945dm2\index.cfm: line 4
2 : cfscript
3 : switch
PROTECTED]
Sent: Monday, April 14, 2008 9:29 AM
To: CF-Talk
Subject: Re: Using tags with CFSCRIPT
Variable CFLOCATION is undefined.
The error occurred in C:\Websites\156945dm2\index.cfm: line 4
2 : cfscript
3 : switch(cgi.http_host) {
4 : case
'www.brightWebWorks.com':cflocation(theURL
Yes, this is the problem:
cflocation(theURL:'brightWebWorks.com/')
cflocation is a tag, not a function. To do the cflocation from within a
cfscript block you will need to create a UDF. I.e.
cffunction name=scriptLocation
cfargument name=location
cfargument name=addToken required=false
Hi Dominic,
Thank you for clarifying this whole thing. I had done a couple of
searches on Google and I didn't read anything about creating an UDF.
Obviously creating an UDF for this matter is not necessary when you can use
cfswitch and cfcase but for the sake of learning lets say I were to
Where would I place these UDFs so that whenever I needed them I
could just call the function?
Yeh, I often use UDFs for this kind of thing where I want to use cfscript
but there is the odd tag I need to use but I doubt you'd ever get a google
result for this kind of thing.
For UDFs, I
On Mon, Apr 14, 2008 at 7:09 AM, Scott Stewart
[EMAIL PROTECTED] wrote:
I've used a similar script with HMS hosting. Using CFScript should be a bit
faster as CF processes the CFScript block all at once as opposed to
processing each tag individually.
I was under the impression that this
Gotcha, would it be better to put these UDFs in CFCs and then instantiate
them on Application.CFC?
Ravi.
On Mon, Apr 14, 2008 at 10:22 AM, Dominic Watson
[EMAIL PROTECTED] wrote:
Where would I place these UDFs so that whenever I needed them I
could just call the function?
Yeh, I
Thanks. This issue is now resolved.
Ravi.
On Mon, Apr 14, 2008 at 10:35 AM, Dominic Watson
[EMAIL PROTECTED] wrote:
Gotcha, would it be better to put these UDFs in CFCs and then
instantiate
them on Application.CFC?
I don't think so because then you would have to call them with:
So forgive me for focusing on the non-technical aspect of this - but
did I read you right? You are publicly admitting you are cheating
HostMySite? I must be wrong.Unless perhaps HMS did something to you
that you feel justified in cheating them - even then I'd find it hard
to believe you would say
.
-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Monday, April 14, 2008 9:39 AM
To: CF-Talk
Subject: Re: Using tags with CFSCRIPT
So forgive me for focusing on the non-technical aspect of this - but did I
read you right? You are publicly admitting you are cheating
to a hosted server.
--
Scott Stewart
ColdFusion Developer
SSTWebworks
4405 Oakshyre Way
Raleigh, NC. 27616
(919) 874-6229 (home)
(703) 220-2835 (cell)
-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Monday, April 14, 2008 10:39 AM
To: CF-Talk
Subject: Re: Using tags
Raymond Camden wrote:
So forgive me for focusing on the non-technical aspect of this - but
did I read you right? You are publicly admitting you are cheating
HostMySite? I must be wrong.Unless perhaps HMS did something to you
that you feel justified in cheating them - even then I'd find it hard
Gotcha, would it be better to put these UDFs in CFCs and then instantiate
them on Application.CFC?
I don't think so because then you would have to call them with:
myUDFsObject.udfName()
As opposed to just:
udfName()
You could just include all your udfs in application.cfc in
: Using tags with CFSCRIPT
Raymond Camden wrote:
So forgive me for focusing on the non-technical aspect of this - but
did I read you right? You are publicly admitting you are cheating
HostMySite? I must be wrong.Unless perhaps HMS did something to you
that you feel justified in cheating them
That's assinine. If they provide a workaround for their customers, why not
just build it in to their system and officially allow multiple domains?
Silliness.
We allow code-based redirects because they're less likely to be implemented
(you have to be somewhat familiar with coding) and they
Using CFScript should be a bit faster as CF processes the
CFScript block all at once as opposed to processing each
tag individually.
I strongly doubt this, and have seen no evidence (load tests) that it's true
now, even if it may have been true in the past (which I also doubt).
Dave Watts,
You made an excellent observation about CFScript. It
does process faster because it reads a whole block instead of
reading tag by tag.
Have you validated this assumption with load testing?
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Training:
(home)
(703) 220-2835 (cell)
-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: Monday, April 14, 2008 12:11 PM
To: CF-Talk
Subject: RE: Using tags with CFSCRIPT
Using CFScript should be a bit faster as CF processes the
CFScript block all at once as opposed
(home)
(703) 220-2835 (cell)
-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: Monday, April 14, 2008 12:11 PM
To: CF-Talk
Subject: RE: Using tags with CFSCRIPT
Using CFScript should be a bit faster as CF processes the
CFScript block all at once as opposed
PROTECTED]
Sent: Monday, April 14, 2008 12:11 PM
To: CF-Talk
Subject: RE: Using tags with CFSCRIPT
Using CFScript should be a bit faster as CF processes the
CFScript block all at once as opposed to processing each
tag individually.
I strongly doubt this, and have seen no evidence (load tests
] Ravi Gehlot [mailto:[EMAIL PROTECTED]
Sent: Monday, April 14, 2008 1:58 PM
To: CF-Talk
Subject: Re: Using tags with CFSCRIPT
Hey Scott,
I spoke to a couple of my senior developer friends and they told me
that back in the days of CF5 cfscript was faster than tags but that doesn't
hold true
Then they would have to support it ;-)
Eric
/*-Original Message-
/*From: Andy Matthews [mailto:[EMAIL PROTECTED]
/*Sent: Monday, April 14, 2008 10:05 AM
/*To: CF-Talk
/*Subject: RE: Using tags with CFSCRIPT
/*
/*That's assinine. If they provide a workaround for their customers, why
Use cfscript Instead of Three or More cfsets The reason
is this: When you use cfscript, the entire block gets sent to
the engine at once. So, ColdFusion has to make only one read.
When you send three or more cfset statements, ColdFusion
gets to interpret them once each, or three times.
27 matches
Mail list logo