You are here: Re: Why won't variable echo? « PHP Programming Language « IT news, forums, messages
Re: Why won't variable echo?

Posted by Rik on 10/19/06 04:17

affiliateian@gmail.com wrote:
> Chris Hope wrote:
>> Either enable it using .htaccess (if possible) or change all
>> references to eg echo $_GET['f']. The latter is the better option
>> but if your site is full of global references then as a short term
>> solution you'll need to get register_globals enabled.
>
> Thanks Chris, not sute how to enable register_globals but echo
> $_GET['f'] worked! Thanks so much!

Luckily.

Either make sure sure ALL your values are initialiased ($f = '' etc...),
or keep register_globals off (preferably both ofcourse), so your script
won't have to deal with variable values that have been set by a user on the
Evil Net, but only by youself, or a validated/checked request from the
user. That way you're reaonably sure what your sript does, instead of
intorducing unpredictable, and potentially harmfull, variables.
--
Rik Wasmus

 

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

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