RE: [PHP] URL / slash reduction

2002-06-10 Thread Martin Towell
There's probably a single reg.ex. you could use, but I'm too lazy to figure that one out. But try this instead (not tested though) $str = http://www.tuned-belgium.com/user/?id=/junni; $tmp = explode(?, $str); $tmp[1] = str_replace(/, , $tmp[1]; $str = implode(?, $tmp); -Original

RE: [PHP] URL / slash reduction

2002-06-10 Thread Dave
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

Re: [PHP] URL / slash reduction

2002-06-10 Thread X-power.be
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 ']'); ? headMETA HTTP-EQUIV=Refresh CONTENT=0; URL=http://tuned-belgium.com/main/modules.php?name=userop=userinfouname=? print

RE: [PHP] URL / slash reduction

2002-06-10 Thread Martin Towell
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

RE: [PHP] URL / slash reduction

2002-06-10 Thread John Holmes
' . $_GET['id'] . ' world'; Or... Echo hello $_GET[id] world; Etc...adapt to your needs... ---John Holmes... -Original Message- From: X-power.be [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 8:04 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] URL / slash reduction the nickname

Re: [PHP] URL / slash reduction

2002-06-10 Thread YLA G - X-power.be
@ 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

Re: [PHP] URL / slash reduction

2002-06-10 Thread YLA G - X-power.be
- 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