Re: URL parsing

From: Date: Mon, 26 Mar 2001 02:06:45 +0000
Subject: Re: URL parsing
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-45553@lists.php.net to get a copy of this message
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) : > > Building 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/ > >

« previous php.general (#45553) next »