super easy.

$path_array = explode('/', $REQUEST_URI);
$numPathElements = count($path_array);

then loop through the elements and do what you need, you might need 
to use strtok() if you're expecting slashes in your arguments.

-aaron

At 8:58 PM -0500 3/23/01, Jaxon wrote:
>how about parsing a url from passing variables like :
>test.php/op/3/op2/6/pagename.html
>
>cannot this be parsed, to let search engines spider past the "?" properly?
>
>regards,
>jaxon
>
>On 3/23/01 7:46 PM, "Richard Lynch" <[EMAIL PROTECTED]> wrote:
>
>>  I think you can change the separator in php.ini, and for sure you could do
>>  it by hand using $PATH_INFO or something.
>>
>>  Personally, my first question would be if the new "standard" is actually
>>  being used or supported by anybody else...
>>
>>  --
>>  Visit the Zend Store at http://www.zend.com/store/
>>  Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
>>  Volunteer a little time: http://chatmusic.com/volunteer.htm
>>  ----- Original Message -----
>>  From: Dave Smith <[EMAIL PROTECTED]>
>>  Newsgroups: php.general
>>  Sent: Saturday, March 17, 2001 10:55 AM
>>  Subject: [PHP] URL parsing
>>
>>
>>>  I have heard that the new standard for URLS is ...test.php?op=3;op2=6...
>>>  using the semi colon as a seperator. Is this currently supported by php
>>  4.0.3?
>>>
>>>  Cheers
>>>
>>>  Dave Smith
>>>
>>>  --
>>>  PHP General Mailing List (http://www.php.net/)
>>>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>  For additional commands, e-mail: [EMAIL PROTECTED]
>>>  To contact the list administrators, e-mail: [EMAIL PROTECTED]
>>>
>>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to