Google Community Chat
 
what does "C=M;O=D" mean?

You're visiting Google Community as a guest.
In order to post, you'll need to register and log in.

(If you were registered and logged in, these advertisements wouldn't be here)
Post new topic   Reply to topic    Google Community Forum Index // Web Design, Coding & Programming Forum
   
Author Message
pal
anomaly in the system
Googler


Joined: 17 Nov 2005
Location: Bangalore
2154.15 GC$

Items

PostPosted: Sat Nov 19, 2005 9:58 am    Post subject: what does "C=M;O=D" mean? Reply with quote
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]
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Google Talk
pal
anomaly in the system
Googler


Joined: 17 Nov 2005
Location: Bangalore
2154.15 GC$

Items

PostPosted: Wed Nov 23, 2005 8:26 am    Post subject: Reply with quote
k.. this's kinda weird coz I posted the question and now I'm posting the answer too Very Happy

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.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Google Talk
killerpants
Noogle
Noogle


Joined: 24 Jul 2005

730.00 GC$

Items

PostPosted: Sun Jan 15, 2006 9:23 pm    Post subject: you're right! and i know the rest just FYI! Reply with quote
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!
Back to top
View user's profile Send private message
amitpatel_3001
Senior Googler
Senior Googler


Joined: 13 Jan 2006
Location: India
5418.45 GC$

Items

PostPosted: Sun Jan 15, 2006 10:11 pm    Post subject: Reply with quote
Well i was always confused about these now understood them Razz
Thanks
_________________
Paris Hilton|Global Internet Index
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Sponsored Links
Posted: 9 Jan 2009 3:25 am    Post subject: Advertisements
Back to top
Post new topic   Reply to topic    Google Community Forum Index // Web Design, Coding & Programming Forum All times are GMT - 8 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Host your free forums with Invision Plus.net forum web hosting with your own subdomain.

alexisBlue v1.2 // Theme Created By: Andrew Charron // Icons in Part By: Travis Carden

© 2005-2006 Google Community

Powered by phpBB

Privacy Policy | Contact Us

Powered by Google Search blog

This website is not affiliated in any way with Google, Inc.
Google™ is a registered trademark of Google, Inc.