943,169 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 27
  • PHP RSS
Sep 1st, 2010
0

Question about a php urls

Expand Post »
How do you get URLs like below when using php?

http://domain.com/photos/022010/01/

Where it normally is written like this:

http://domain.com/photos.php?date=022010&id=01

I see sites like this all the time now and am curious how this is accomplished. I do have an idea though...

When creating a directory for example photos. Do I just put an index.php file in that directory and just in my php instead of calling on a href as "?date=.$row['date']." do I call it as "/.$row['date']./" ?

Hope that is explained well. I guess twitter would be an example of what I am talking about. I just cannot recall the url where I specifically saw this.

If someone does know what I am talking about can they please shed some more light on it?
Thanks!
Brian
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster
bjeffries is offline Offline
141 posts
since Apr 2010
Sep 1st, 2010
0
Re: Question about a php urls
I have another example:
http://motocross.transworld.net they use it, and a specific URL would be:

http://motocross.transworld.net/1000...actice-update/
Reputation Points: 10
Solved Threads: 0
Junior Poster
bjeffries is offline Offline
141 posts
since Apr 2010
Sep 2nd, 2010
0
Re: Question about a php urls
you need to use Mod_Rewrite for that. Here is a Mod_Rewrite manual designed for newbies.
Reputation Points: 10
Solved Threads: 2
Newbie Poster
CyberSpatium is offline Offline
9 posts
since Sep 2010
Sep 3rd, 2010
0
Re: Question about a php urls
sweeeet im definitely going to use this!!
Reputation Points: 10
Solved Threads: 0
Junior Poster
bjeffries is offline Offline
141 posts
since Apr 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: How to hide menu
Next Thread in PHP Forum Timeline: convert rtf to html through abiword





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC