|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi,
I am wanting to disect the $_SERVER['HTTP_REFERER'] URL into a base URL and its parameters. So I can do $_POST processing where appropriate. Is there a builtin function or functions that will do this for me ? Many thanks in advance, Aaron |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On Feb 13, 10:36 pm, "Aaron Gray" <ang.use...@gmail.com> wrote:
> Hi, > > I am wanting to disect the $_SERVER['HTTP_REFERER'] URL into a base URL and > its parameters. So I can do $_POST processing where appropriate. > > Is there a builtin function or functions that will do this for me ? > > Many thanks in advance, > > Aaron <http://www.php.net/parse_url> |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
"ZeldorBlat" <zeldorblat@gmail.com> wrote in message
news:3b277603-926d-4d60-9932-9c99dfb39141@s12g2000prg.googlegroups.com... > On Feb 13, 10:36 pm, "Aaron Gray" <ang.use...@gmail.com> wrote: >> Hi, >> >> I am wanting to disect the $_SERVER['HTTP_REFERER'] URL into a base URL >> and >> its parameters. So I can do $_POST processing where appropriate. >> >> Is there a builtin function or functions that will do this for me ? >> >> Many thanks in advance, >> >> Aaron > > <http://www.php.net/parse_url> Thanks, that was quick ![]() So it looks like the 'query' part is a string. Is there anything that parses this into an associative array ? Thanks, Aaron |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
"Aaron Gray" <ang.usenet@gmail.com> wrote in message
news:61hrv2F1upaerU1@mid.individual.net... > "ZeldorBlat" <zeldorblat@gmail.com> wrote in message > news:3b277603-926d-4d60-9932-9c99dfb39141@s12g2000prg.googlegroups.com... >> On Feb 13, 10:36 pm, "Aaron Gray" <ang.use...@gmail.com> wrote: >>> Hi, >>> >>> I am wanting to disect the $_SERVER['HTTP_REFERER'] URL into a base URL >>> and >>> its parameters. So I can do $_POST processing where appropriate. >>> >>> Is there a builtin function or functions that will do this for me ? >>> >>> Many thanks in advance, >>> >>> Aaron >> >> <http://www.php.net/parse_url> > > Thanks, that was quick ![]() > > So it looks like the 'query' part is a string. Is there anything that > parses this into an associative array ? Ah 'parse_str()' does the job ![]() Thanks, Aaron |
|
![]() |
| Outils de la discussion | |
|
|