mysite.com/login.php versus mysite.com/?x=login question
Posted: Mon Jun 26, 2006 12:06 am
Hi!
I'm trying to understand what it is that I'm looking at when I see a URL as mywebsite.com/login.php and when I see mywebsite.com/?x=login. (For simplicity, I'm going to use a file called 'login'.) I like the second format better than the first, but I'm having a very hard time figuring out what it is that I'm seeing.
When I see mywebsite.com/login.php, I recognize that as a file that's called login.php.
When I see mywebsite.com/?x=login, I think I see a CMS in action or something to do with MySQL. Am I correct about this?
I'm sure I once saw a tuturial for building a php webpage where all the sections were in the same file and clicking on a link would reveal another part of the file, previously hidden. The URLs were similar to mywebsite.com/?x=login, but the format I'm after is here x points to a single file on the server, not a hidden section in a file.
Also, does the second URL structure have to be "?x=filename"? Can it be something like "?d=filename"?
Any help would be appreciated. I've been having no luck in figuring out the two URLs on my own.
Thank you.
I'm trying to understand what it is that I'm looking at when I see a URL as mywebsite.com/login.php and when I see mywebsite.com/?x=login. (For simplicity, I'm going to use a file called 'login'.) I like the second format better than the first, but I'm having a very hard time figuring out what it is that I'm seeing.
When I see mywebsite.com/login.php, I recognize that as a file that's called login.php.
When I see mywebsite.com/?x=login, I think I see a CMS in action or something to do with MySQL. Am I correct about this?
I'm sure I once saw a tuturial for building a php webpage where all the sections were in the same file and clicking on a link would reveal another part of the file, previously hidden. The URLs were similar to mywebsite.com/?x=login, but the format I'm after is here x points to a single file on the server, not a hidden section in a file.
Also, does the second URL structure have to be "?x=filename"? Can it be something like "?d=filename"?
Any help would be appreciated. I've been having no luck in figuring out the two URLs on my own.
Thank you.