You are here: Re: conf problem? « PHP Programming Language « IT news, forums, messages
Re: conf problem?

Posted by Erwin Moller on 04/25/06 17:55

leo wrote:

> When i echo the $catid, it returns null. $catid is there, confirmed by
> command prompt and "select table from database".
>
> Is php needed to set anything or security issue such that $HTTP_GET_VAR
> associative array can't be retrieved?
>
> Thanks a lot
>
>
> $catid = $HTTP_GET_VAR['catid'];
>
> echo "catid at showcat: $catid";

Yes, it is in php5.
http://nl2.php.net/manual/en/ini.core.php#ini.register-long-arrays

FROM MANUAL:
-------------------------
register_long_arrays boolean

Tells PHP whether or not to register the deprecated long $HTTP_*_VARS
type predefined variables. When On (default), long predefined PHP variables
like $HTTP_GET_VARS will be defined. If you're not using them, it's
recommended to turn them off, for performance reasons. Instead, use the
superglobal arrays, like $_GET.

This directive became available in PHP 5.0.0.

-------------------------

So use $_GET[] or $_POST[] instead of the old $HTTP_GET_VARS, or change this
in your ini-settings.

My advise would be to use $_GET[] instead.

Regards,
Erwin Moller

 

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

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