PDA

View Full Version : what does " forumdisplay.php?f=92" do?


cache
10-19-2008, 11:07 PM
When I place my cursor to a site, the address display from browser shows something like:

hhtp://www.vbulletin.org/forum/forumdisplay.php?f=92

how does the "f" and "92" passed to the forumdisplay.php?
I know "f" and "92" are not php variables since they don't have $ sign in front of it. Where can I read something to understand the internals and be able to trace the forumdisplay.php program (i.e. what happens after the "92" assigned to "f", which part of the php received the
value 92 etc).

This may look like a simple question, but I could not find an answer. Thank in advance for answering.

Lynne
10-19-2008, 11:50 PM
f is short for 'forumid' and 92 is the forumid number. So, that url gives you the forumdisplay page for forumid 92.

Guest190829
10-20-2008, 12:13 AM
Anything passed through the request url can be read as a variable in PHP. As Lynne stated, forumdisplay.php is utilizing the f=42 in the URL to process what forum to display.

Are you looking for more specifics?

nexialys
10-20-2008, 12:50 AM
actually he mean more than the protocol, but how the info is parsed in the url...

your documentation will start here: http://ca3.php.net/manual/en/language.variables.external.php

cache
10-20-2008, 01:45 AM
nexialys, thank you for the link. The article of the link says:"GET also applies to the QUERY_STRING (the information after the '?' in a URL).".

However, I could not find _GET in the forumdisplay.php, there is no query_string in forumdisplay.php either. So I am still not sure how the "f" and "92" are passed to the
php script.

nexialys
10-20-2008, 02:01 AM
you will have to read about this in global.php, where all these pre-selected variables are already checked... also, $_GET, $_POST and $_FILE are already parsed on the engine called GPC >> /includes/class_core.php...

helping you more on this would be to explain to you the classes, OOP and possibly all the structure of vBulletin, so maybe you will have to read by yourself!