Re: URL parsing
| From: | Aaron Tuller | Date: | Sat, 24 Mar 2001 02:09:55 +0000 |
| Subject: | Re: URL parsing | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-45394@lists.php.net to get a copy of this message | ||
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" <richard@zend.com> 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 <dave.s@earthcorp.com> Newsgroups: php.general Sent: Saturday, March 17, 2001 10:55 AM Subject: [PHP] URL parsing-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.netI 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 php4.0.3?Cheers Dave Smith -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net