Google Community
Latest Forums Rules Resources
Custom Search

Go Back   Google Community > Webmaster Forums > Web Design, Coding & Programming Forum

GoogleCommunity Sponsor
Cirtex Hosting
Use coupon "forum" for 50% Off!

Reply
 
LinkBack Thread Tools Display Modes
Old 11-19-2005, 08:58 AM   #1 (permalink)
pal
Googler
 
Join Date: Nov 2005
Location: Bangalore
Posts: 69
Thanks: 0
Thanked 1 Time in 1 Post
pal
Send a message via MSN to pal Send a message via Yahoo to pal
what does "C=M;O=D" mean?

I've seen this string - "C=M;O=D" - appended to many URLs which are browsable. what does that signify? coz I've seen other browsable URLs which don't have this appended to them..
[btw, by browsable I mean their directory contents are visible]
pal is offline   Reply With Quote
 
Sponsored Links
Old 11-23-2005, 07:26 AM   #2 (permalink)
pal
Googler
 
Join Date: Nov 2005
Location: Bangalore
Posts: 69
Thanks: 0
Thanked 1 Time in 1 Post
pal
Send a message via MSN to pal Send a message via Yahoo to pal
k.. this's kinda weird coz I posted the question and now I'm posting the answer too

took a while to figure this out.

"C=M;O=D" is the query string passed in to the URLs that are browsable. it's used to sort the files list.
O is the sort order, which can either be A or D for ascending and descending respectively.
C is for column name which's to be sorted. It can take the following values:
N - Name (file name) column
M - Last Modified column
S - Size column
D - might be for Description, but havent tried it

for example:
http://somesite/folder/?C=N;O=A
would return the files list sorted by their file names in ascending order

not sure if C and O take other values.
neither do I know if this's server specific.
I'd be glad if someone could clarify that.
pal is offline   Reply With Quote
Old 01-15-2006, 08:23 PM   #3 (permalink)
Noogle
 
Join Date: Jul 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
killerpants
you're right! and i know the rest just FYI!

Those are basically parameters sent to the server as part of your query (which you found on your own). Those are website-specific parameter names (C and O), so I guess you see them often either because they are convention or because those websites' creators used a similar program to build the websites. I'm not entirely sure, but another reason you see them often might be because usually when a user queries for columns, the server is passing the query to some database, usually in SQL syntax. That C=M and O=A stuff might just correspond with the SQL command to sort the database query results, which would make coding the interface between the server and the database somewhat easier. I hope this helped, and I hope it's not erroneous. I don't know for sure about the SQL stuff, but the first part should be right!
killerpants is offline   Reply With Quote
Old 01-15-2006, 09:11 PM   #4 (permalink)
Senior Googler
 
Join Date: Jan 2006
Location: India
Posts: 191
Thanks: 0
Thanked 0 Times in 0 Posts
amitpatel_3001
Send a message via Yahoo to amitpatel_3001
Well i was always confused about these now understood them :P
Thanks
amitpatel_3001 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft says Google success a "wake-up call" - Scientific American News Alerts Google in the News 0 02-27-2007 05:37 PM
<META http-equiv="Pragma" content="no-cach Sopit Search Engine Optimization Forum 3 10-18-2006 05:20 AM
Is Gamail acount ending with "@gmail.com" or" wanliju Gmail Forum 14 10-07-2005 03:51 AM
<meta name="robots" content="ALL"> Sopit Search Engine Optimization Forum 9 09-19-2005 12:52 PM
"Labels" feature has a problem, "Labels" jovanni Gmail Forum 2 05-18-2005 01:21 PM


All times are GMT -8. The time now is 02:31 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004–2007 Google Community