Re: Help needed in finding a string within a cgi variable.

2007-09-13 Thread gary gilbert
If you are only searching for the existence of _cache you could just use
findNoCase('_cache',cgi.query_string) instead of listFindNoCase.

I know they improved the speed of all the list functions for cf8 but using
it in this case seems a little superfluous.


-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


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


Help needed in finding a string within a cgi variable.

2007-09-12 Thread Richard Steele
cfdump var=#cgi# produces a node that is called QUERY_STRING. 

Here's an example: 
404;http://www.mywebsite.com:80/_cache/106f5d9d92c281ff3e14d3b7096113f.jpg 

I need to search for _cache within that Query_String. 
What is the proper way to do this? Many thanks in advance.  

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


Re: Help needed in finding a string within a cgi variable.

2007-09-12 Thread Wil Genovese
Just use this.
 
listfindnocase(cgi.query_string,_cache,/)


Wil Genovese

One man with courage makes a majority.
-Andrew Jackson

A fine is a tax for doing wrong. A tax is a fine for doing well. 



Richard Steele wrote:
 cfdump var=#cgi# produces a node that is called QUERY_STRING. 

 Here's an example: 
 404;http://www.mywebsite.com:80/_cache/106f5d9d92c281ff3e14d3b7096113f.jpg 

 I need to search for _cache within that Query_String. 
 What is the proper way to do this? Many thanks in advance.  

 

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


Re: Help needed in finding a string within a cgi variable.

2007-09-12 Thread Richard Steele
Many thanks. That did the trick!

 Just use this.
 
 
 listfindnocase(cgi.query_string,_cache,/)
 
 
 Wil Genovese
 
 One man with courage makes a majority.
 -Andrew Jackson
 
 A fine is a tax for doing wrong. A tax is a fine for doing well. 
 
 
 
 Richard Steele wrote:
  cfdump var=#cgi# produces a node that is called QUERY_STRING. 
 
  Here's an example: 404;http://www.mywebsite.
 com:80/_cache/106f5d9d92c281ff3e14d3b7096113f.jpg 
 
  I need to search for _cache within that Query_String. 
  What is the proper way to do this? Many thanks in advance.  
 
  


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