You are here: Re: Traversing $_REQUEST array and excluding items « PHP Programming Language « IT news, forums, messages
Re: Traversing $_REQUEST array and excluding items

Posted by Toby A Inkster on 05/30/07 08:16

Fred!head wrote:

> However, I see the $_REQUEST array is junked up with lots of form
> values, some I've heard of (PHPSESSID) and other mystery keys (e.g.
> dbx-pagemeta, __utmz).

IIRC, "__utmz" is a cookie used by "Urchin", the stats package that was
bought by Google, and is now branded as "Google Stats" or some such.

An easy way to do what you wanted would be:

$my_request = $_REQUEST;
unset($my_request['__utmz']);
unset($my_request['PHPSESSID']);
unset($my_request['dbx-pagemeta']);

However, to me, it looks like all these unwanted values are cookies. You
might want to consider using $_GET or $_POST instead of $_REQUEST.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 95 days, 15:56.]

Non-Intuitive Surnames
http://tobyinkster.co.uk/blog/2007/05/25/non-intuitive-surnames/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация