Reply to Re: global vars on/off

Your name:

Reply:


Posted by Rik on 02/07/07 18:21

Jerry Stuckle <jstucklex@attglobal.net> wrote:
>> Indeed, allthough this is offcourse bad coding. Every variable should
>> be initialised, and every $_SESSION / $_POST / $_GET / $_COOKIE should
>> be accessed like such. So, when coding correctly, having
>> register_globals on is not a problem. However, when making a tiny
>> mistake or when relying in register_globals, that's where it goes
>> wrong. In short, unless you're infallable having register_globals off
>> is just better.
>
> I didn't say it was *good* coding. But he did ask what the potential
> problem was. :-)
>
> And I've seen similar code way too many times, especially on sites built
> for earlier versions of PHP.

I agree with you, it's just an illustration.
The programmer who thinks he's infallable should think again :P

--
Rik Wasmus

[Back to original 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

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