Re: URL parsing
| From: | Aaron Tuller | Date: | Mon, 26 Mar 2001 02:25:33 +0000 |
| Subject: | Re: URL parsing | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-45556@lists.php.net to get a copy of this message | ||
why can't you str_replace the $QUERY_STRING frm the $REQUEST_URI?
give an example of what you are trying to do? (I'm sorry if you did and I missed it)
-aaron
At 9:06 PM -0500 3/25/01, Jaxon wrote:
K, read em all, and understood more than I thought I :) I still don't see how you can 'sanitize' a URI, eg discard anything including and after "//" or "??". I think this is needed if you want to discard a query string or irregular syntax from your URI. ereg's don't work reliably, due to the possibility of special chars in the URI. regards, jaxon On 3/25/01 3:18 PM, "Philip Olson" <philip@cornado.com> wrote:Hi! Check out these two related articles (and user comments) :-- 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.netBuilding Dynamic Pages With Search Engines in Mind :-------------------------------------------------------- * http://phpbuilder.com/columns/tim19990117.php3 * http://phpbuilder.com/columns/tim20000526.php3 Also check phpinfo() for available predefined variables and plan accordingly.Predefined Variables :-------------------------------------------------------- * http://www.php.net/manual/en/language.variables.predefined.php And for the brave, check out mod_rewrite :Mod-Rewrite :-------------------------------------------------------- * http://httpd.apache.org/docs/mod/mod_rewrite.html * http://www.engelschall.com/pw/apache/rewriteguide/ * http://marc.theaimsgroup.com/?l=php-general&s=mod_rewrite Regards, Philip Olson http://www.cornado.com/