Forum Moderators: phranque
But I know next to nothing about it - so I'm wondering if there are any particular pitfalls and also any particular advantages we can leverage for websites done with CF - especially relative to the search engines.
He agreed with the drawbacks, expensive and slow. cfm seems to often have monster, unspiderable, query strings as well. I think that has more to do with cfm programmers as opposed to the actual language.
Not a very encouraging post but that is what I know about it.
"Slow" is the thing that's concerning me the most right now. Some of the slowest pages I've seen on the web are ColdFusion - and they're a lot slower than their file sizes would indicate is necessary. So I've always assumed that CF is the culprit.
But I've been told (and haven't confirmed so far) that this is because a lot of small operations with old and poorly configured servers use CF, and that this set of 4 new boxes the client is using will handle it all just fine. I am not Mr. Server Admin, so I can only kick the tires and ask what I hope are the right questions. That means I am counting on this community for good input right now, before the commitment to CF is set in stone.
Thanks, jatar.
Which platform for CF Server - Win or *Nix?
Response time can also be improved by caching frequently used queries. If you have an updated news section, that query can be refreshed in 15 minute intervals instead of being queried with every visit to the page.
Windows 2000 is a more stable environment, IMO
The temptation to challenge this is great :) BUT Tedster's issue has more to do with CF and the platform it's running on rather than the platform itself. In this case, CF on Win is a more stable combination.
The only other issue I'd want to know about is the choice of db. Speed will be an issue if they're using MS Access with an ODBC connection (not to # of connections and records).
The last thing I'll add is that I spent several years with CF and switched to PHP. Not that this is an option for you but in hindsight, I'm 200% happier with PHP.
long term plan is to go to *nix and eliminate Microsoft dependence
Just reread your post - if this is true - make the switch to PHP & MySQL now!
Basically, if you're looking to drop the variables and just display the page name then you'll need to do some server side work. On linux it's mod_rewrite, on Windows - I don't even know if you can do it on Windows servers. But I believe that has been discussed here as well. What dircection you head depends upon the server OS you're using.
<cfif isdefined("CGI.path_info")>
<cfoutput>
<CFSET mylist = Right(CGI.path_info, Len(CGI.path_info)-1)>
<CFSET mylist = Replace(mylist,"/",",","ALL")>
<cfset mylist = ListDeleteAt(mylist,1)>
<!--- remove actual .cfm file from list --->
<cfloop index="x" from=0 to=#Val(ListLen(mylist)/2-1)#>
<cfif NOT isDefined("url.#ListGetAt(mylist,x*2+1)#")>
<cfset Evaluate("url.#ListGetAt(mylist,x*2+1)# = ListGetAt(mylist,x*2+2)")>
</cfif>
</cfloop>
</cfoutput>
</cfif>
Some of your IMG SRC links may need to be absolute instead of relative using this method. If this does not work for you, I can dig up some other examples from the ColdFusion support forum. Sticky me and I will send you the links. - Sun
sun818 - that's really helpful. I've also had a look at the support forums at Macromedia. We'll try this trick and let you know how we get on.
Cheers!