File Extensions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
bokehman
Forum Regular
Posts: 509
Joined: Wed May 11, 2005 2:33 am
Location: Alicante (Spain)

Post by bokehman »

I believe this is a valid use of a query string though. http://myhomewebserver.co.uk/dns_test?d ... net&type=A
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

To bokehman, yeah it is.
For me the most professional way is any way that is easy for the viewer. So 'cats.com/pedigree/persian' is a lot easier than 'www.cats.com/index.php?type=pedigree&breed=persian'. If anyone prefers typing the second one please see a psychiatrist!
The problem with doing it the folders way is that it suggests a hierarchy of pages, and goodness there are many setups that don't follow a clean hierarchy.

There is also a big inconvenience when it comes to doing things that way, and it's making sure all the URLs resolve to the same places. Sure, you can always go "/pedigree/persian" but that assumes that the root of the program is the root of the web tree, which, unfortunantely and especially for prepackaged programs, is not always the case. It's a bit of an inconvenience having to go through all your URLs and making them work out. (It's not impossible, of course)
Post Reply