RE: [PHP] URL / slash reduction

From: Date: Mon, 10 Jun 2002 23:56:43 +0000
Subject: RE: [PHP] URL / slash reduction
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-101476@lists.php.net to get a copy of this message
>this url is the one that i want for my users: > >http://user.tuned-belgium.be/junni > > >but go's now to > >http://www.tuned-belgium.com/user/?id=/junni (slash junni) > >but must go to > >http://www.tuned-belgium.com/user/?id=junni (without slash) > >how can i prevent or filter the slash away? without getting eloquent... and assuming your url string is static each time ($id doesn't move withing your url string). $url = str_replace('?id=/','?id=','http://www.tuned-belgium.com/user/?id=/junni'); Dave

« previous php.general (#101476) next »