Jump to content

URL Arguments


$cripts

Recommended Posts

ok.......well sense ur not helping me.....
does it matetr what i use it for?
i need a way to proccess the url arguments and remove the page arument from it
so i would have
like test.php?f=view&t=1&page=5&sort=ASC
$arguments = $_SERVER['argv'];
// code to remove certain arg
so i now have
test.php?f=view&t=1&sort=ASC
and i need to do it from calling a function
Link to comment
https://forums.phpfreaks.com/topic/11049-url-arguments/#findComment-41288
Share on other sites

Since you keep on refering to "argv" am I correctly assuming that you are running from the CLI interface to PHP not from a webserver?

If that's the case, you probably want to look at the functions [a href=\"http://www.php.net/parse_str\" target=\"_blank\"]parse_str()[/a] and possibly [a href=\"http://www.php.net/parse_url\" target=\"_blank\"]parse_url()[/a].

Ken
Link to comment
https://forums.phpfreaks.com/topic/11049-url-arguments/#findComment-41311
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.