news | articles | reviews | software | modules | accessories | discussion | faq | mobile | store
VisorCentral.com >> Discussion >> VisorCentral >> VisorCentral.com
Decode URLs

Post a New Thread | Post A Reply

  Last Thread   Next Thread
Author
Topic: Decode URLs    
usbworkshop
Member

Registered: Jul 2000
Location: Vancouver, BC
Posts: 62

Hi, how did you guys decode this URL for your PHP3 programs?

http://www.visorcentral.com/page/0-1-0-1.htm

This kind of URLs is good for search engine-friendly...

Thanks

__________________
-------------------------
Editor
USB Workshop
http://www.usbworkshop.com/

usbworkshop is offline Old Post 11-24-2000 06:05 AM
Click Here to See the Profile for usbworkshop Edit/Delete Message Reply w/Quote
marcus
VisorCentral Staff

Registered: Aug 1999
Location: Inverness, FL
Posts: 428

The following code break the URL apart.

$url_array=explode("-",$REQUEST_URI);
$id0 = $url_array[0];
$id1 = $url_array[1];
$id2 = $url_array[2];
$id3 = $url_array[3];
$id4 = $url_array[4];
$id5 = $url_array[5];

In the apache settings we forced the server to recognize /page/ as a php file.

__________________
<B>Marcus Adolfsson</B>
Editor

marcus is offline Old Post 11-26-2000 08:59 PM
Click Here to See the Profile for marcus Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 12:08 AM. Post New Thread    Post A Reply
  Last Thread   Next Thread
[ Show a Printable Version | Email This Page to Someone! | Receive updates to this thread ]

Forum Jump:

Powered by: vBulletin Version 2.3.4
Copyright ©2000, 2001, Jelsoft Enterprises Limited.