URL Parsing
| From: | Pedro Melo | Date: | Tue, 17 Apr 2001 11:41:42 +0000 |
| Subject: | URL Parsing | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969335015@lists.php.net to get a copy of this message | ||
hi
i need to parse an URL with the next values:
http://www.something.com/section/subsection/.../page.html
translating this URL:
section and subsection and ... are variables referred as ID's
is a MySQL database. by getting the 'page' in 'page.html' i know
what i am looking for in the same database.
What i need is parsing all variables between the '/' and the laste
variable with '.html'
What is this for: i want the user to know where he is on my site. I
think that by using the common system
(likehttp://www.something.com?sid=34&subid=5&p=2
) the user would have
difficulties to read. You have an example in www.freshmeat.net.
I know that this system must use a DefaultHandler (DHandler i guess) in
Apache server where it parses and checks the url to not result in the
ERROR 404 code.
Is this possible in PHP? How can i do it? is there any script out there
where i could download it?
Tanx anyway !
Sergio