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
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
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
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
' . $_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
@ 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
- 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
7 matches
Mail list logo