Re[4]: [PHP] OO parent/child relationship
| From: | Tom Rogers | Date: | Mon, 06 Oct 2003 10:22:10 +0000 |
| Subject: | Re[4]: [PHP] OO parent/child relationship | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-165167@lists.php.net to get a copy of this message | ||
Hi,
Monday, October 6, 2003, 2:10:46 PM, you wrote:
RC> On Sun, 2003-10-05 at 23:37, Tom Rogers wrote:
>> Hi,
>>
>> Well I must have missed that one :)
>> My answer, if GLOBALS were not meant to be used they wouldn't be there..
>> So if they make life easier go ahead and use them. I notice a lot of 'purists'
>> on this list that want things done a certain way but the bottom line is do what
>> your comfortable with and works for you. Of course you have to keep security
>> issues under control as well, it would be no good doing this if you run with
>> register globals set to on as the array could very easily be trashed.
RC> All fine and dandy till you decide to use some other class or library
RC> that just happened to use the same global names you've used. Then you
RC> have a mess :) But sure, if that's not an issue, go ahead and globalize
RC> everything.
RC> Cheers,
RC> Rob.
No one was suggesting globalising everything :)
--
regards,
Tom