|
Posted by R. Rajesh Jeba Anbiah on 10/04/69 11:31
Chung Leong wrote:
<snip>
> > : 4) Turn global variables off.
> >
> > Yes.
>
> Avoid using global variables in general. It's a bad programming
> practice. For configuration info, use either constants or a function.
It is true that constants cannot be tampered. But, I don't get
the idea, how it is a right choice for global scope thing. I also tried
the function, but in my tests, it severely affects the memory.
FWIW, OP may refer Chung's thread on security
<news:iPidnfkyy4EIa7fdRVn-jQ@comcast.com> (
http://groups.google.com/group/comp.lang.php/msg/2da18bc51f0448fc )
--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
Navigation:
[Reply to this message]
|