sorry now was i my short nickname its
http://user.tuned-belgium.be/yla%20G ------- ------- ------- ------- ------- ------- Connecting Tuners @ http://www.Tuned-Belgium.com Xbox talk @ http://www.X-power.be Gamecube @ http://www.cube-power.be ----- Original Message ----- From: "YLA G - X-power.be" <[EMAIL PROTECTED]> To: "Martin Towell" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, June 11, 2002 2:49 AM Subject: Re: [PHP] URL / slash reduction > :) :) great help!!!! thx mate!!! > > > now can everyone create a account with a userpage!! > > look at MY car: http://user.tuned-belgium.be/yla > > look at the beatyyyyyyyyyyyyyyy > > > greetz > > ------- ------- ------- ------- ------- ------- > Connecting Tuners @ http://www.Tuned-Belgium.com > Xbox talk @ http://www.X-power.be > Gamecube @ http://www.cube-power.be > > ----- Original Message ----- > From: "Martin Towell" <[EMAIL PROTECTED]> > To: "'YLA G - X-power.be'" <[EMAIL PROTECTED]> > Sent: Tuesday, June 11, 2002 2:42 AM > Subject: RE: [PHP] URL / slash reduction > > > > let's start from scratch: > > > > in coming url: http://www.tuned-belgium.com/user/?id=/nickname > > needs to be: > > > http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname=nickna > > me > > > > <? > > $ndx = strrpos($REQUEST_URI, "/"); > > $uname = substr($REQUEST_URI, $ndx + 1); > > $url = > > "http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname=" . > > $uname; > > ?> > > > > how about that - I haven't tested it > > > > -----Original Message----- > > From: YLA G - X-power.be [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, June 11, 2002 10:39 AM > > To: Martin Towell > > Subject: Re: [PHP] URL / slash reduction > > > > > > i did this now: > > > > <?php > > $url = > > > str_replace('?id=/','?id=','http://www.tuned-belgium.com/user/?id=/'.$_GET[' > > id']); > > ?> > > <head><META HTTP-EQUIV="Refresh" CONTENT="0; > > > URL=http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname=<? > > print $url ?>"></head> > > > > now i getting the full url http://www.tuned-belgium.com/user/?id=/junni as > > the nickname (with the slash to) > > > > > > ------- ------- ------- ------- ------- ------- > > Connecting Tuners @ http://www.Tuned-Belgium.com > > Xbox talk @ http://www.X-power.be > > Gamecube @ http://www.cube-power.be > > > > ----- Original Message ----- > > From: "Martin Towell" <[EMAIL PROTECTED]> > > To: "'YLA G - X-power.be'" <[EMAIL PROTECTED]> > > Sent: Tuesday, June 11, 2002 2:32 AM > > Subject: RE: [PHP] URL / slash reduction > > > > > > > John Holmes just reminded me that variables inside single quotes don't > get > > > evaluated... > > > > > > so try this instead > > > > > > > > > str_replace('?id=/','?id=','http://www.tuned-belgium.com/user/?id=/'.$_GET[' > > > id']); > > > > > > -----Original Message----- > > > From: YLA G - X-power.be [mailto:[EMAIL PROTECTED]] > > > Sent: Tuesday, June 11, 2002 10:19 AM > > > To: Martin Towell > > > Subject: Re: [PHP] URL / slash reduction > > > > > > > > > no it must be a bether url of: > > > > > > http://tuned-belgium.com/user/?id=Junni > > > > > > wana get rid of the ?id= > > > > > > > > > ------- ------- ------- ------- ------- ------- > > > Connecting Tuners @ http://www.Tuned-Belgium.com > > > Xbox talk @ http://www.X-power.be > > > Gamecube @ http://www.cube-power.be > > > > > > ----- Original Message ----- > > > From: "Martin Towell" <[EMAIL PROTECTED]> > > > To: "'YLA G - X-power.be'" <[EMAIL PROTECTED]> > > > Sent: Tuesday, June 11, 2002 2:11 AM > > > Subject: RE: [PHP] URL / slash reduction > > > > > > > > > > This is, hopefully, a silly question - are you sure it's "id" you're > > after > > > > and not "uname"? > > > > > > > > In both urls you have "uname" being passed in and not "id". > > > > > > > > -----Original Message----- > > > > From: YLA G - X-power.be [mailto:[EMAIL PROTECTED]] > > > > Sent: Tuesday, June 11, 2002 10:11 AM > > > > To: Martin Towell > > > > Subject: Re: [PHP] URL / slash reduction > > > > > > > > > > > > ok error gone but ID is empty now.. > > > > > > > > sugestions > > > > > > > > thx for your help! > > > > > > > > ------- ------- ------- ------- ------- ------- > > > > Connecting Tuners @ http://www.Tuned-Belgium.com > > > > Xbox talk @ http://www.X-power.be > > > > Gamecube @ http://www.cube-power.be > > > > > > > > ----- Original Message ----- > > > > From: "Martin Towell" <[EMAIL PROTECTED]> > > > > To: "'X-power.be'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > > > > Sent: Tuesday, June 11, 2002 2:06 AM > > > > Subject: RE: [PHP] URL / slash reduction > > > > > > > > > > > > > it's because you've got single quotes inside single quotes... > > > > > change $_GET['id'] > > > > > to $_GET[id] > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: X-power.be [mailto:[EMAIL PROTECTED]] > > > > > Sent: Tuesday, June 11, 2002 10:04 AM > > > > > To: [EMAIL PROTECTED] > > > > > Subject: Re: [PHP] URL / slash reduction > > > > > > > > > > > > > > > the nickname 'junni' was an example.. > > > > > > > > > > i have this now but its not working :( > > > > > > > > > > <?php > > > > > $url = > > > > > > > > > > > > > > > str_replace('?id=/','?id=','http://www.tuned-belgium.com/user/?id=/$_GET['id > > > > > ']'); > > > > > ?> > > > > > <head><META HTTP-EQUIV="Refresh" CONTENT="0; > > > > > > > > > > > > > > > URL=http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname=<? > > > > > print $url ?>"></head> > > > > > > > > > > gives: > > > > > > > > > > Parse error: parse error in > /usr/home/v1/a0016905/html/user/filter.php > > > on > > > > > line 2 > > > > > > > > > > > > > > > the meaning of it is that http://user.tuned-belgium.be/nickname > > > > > goes to > > > > > > > > > > > > > > > http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname=nickna > > > > > me > > > > > > > > > > > > > > > ------- ------- ------- ------- ------- ------- > > > > > Connecting Tuners @ http://www.Tuned-Belgium.com > > > > > Xbox talk @ http://www.X-power.be > > > > > Gamecube @ http://www.cube-power.be > > > > > > > > > > "Dave" <[EMAIL PROTECTED]> schreef in bericht > > > > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > > > > >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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > PHP General Mailing List (http://www.php.net/) > > > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php