| |
pal anomaly in the system


Joined: 17 Nov 2005 Location: Bangalore 2154.15 GC$
Items
|
Posted: Sat Nov 19, 2005 9:58 am Post subject: 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] |
|
| Back to top |
|
|
pal anomaly in the system


Joined: 17 Nov 2005 Location: Bangalore 2154.15 GC$
Items
|
Posted: Wed Nov 23, 2005 8:26 am Post subject: |
|
|
|
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. |
|
| Back to top |
|
|
killerpants Noogle

Joined: 24 Jul 2005
730.00 GC$
Items
|
Posted: Sun Jan 15, 2006 9:23 pm Post subject: 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! |
|
| Back to top |
|
|
amitpatel_3001 Senior Googler


Joined: 13 Jan 2006 Location: India 5418.45 GC$
Items
|
|
| Back to top |
|
|
Sponsored Links
|
Posted: 9 Jan 2009 3:25 am Post subject: Advertisements |
|
|
|
|
|
|
| Back to top |
|
|
|
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
|
|
|
|
|