[PHP] Class Problems

2009-08-11 Thread Ashley Sheridan
Hey all, Is there any reason why this shouldn't work correctly on a server running PHP 4.4.7: ?php class testClass { private $foo = 'bar'; } print 'wtf'; ? I would at the very least expect to see the 'wtf' printed out. I've got a whole class I've written that works fine in PHP 5, but on

Re: [PHP] Class Problems

2009-08-11 Thread la...@garfieldtech.com
The private keyword was added in PHP 5. PHP 4 doesn't have visibility identifiers. In PHP 4 you have to use var, which is then always public. Or you could just use PHP 5 instead of a dead language. :-) Ashley Sheridan wrote: Hey all, Is there any reason why this shouldn't work correctly on

Re: [PHP] Class Problems

2009-08-11 Thread Ashley Sheridan
On Tue, 2009-08-11 at 10:40 -0500, la...@garfieldtech.com wrote: The private keyword was added in PHP 5. PHP 4 doesn't have visibility identifiers. In PHP 4 you have to use var, which is then always public. Or you could just use PHP 5 instead of a dead language. :-) Ashley Sheridan

Re: [PHP] Class Problems

2009-08-11 Thread Aschwin Wesselius
Ashley Sheridan wrote: And I really would use a PHP 5 server given the choice. I've tried speaking to the hosting company a few times, but they brush me off! Hi Ashley, And how is their SLA then? Do you take full responsibility in case of a security breach? PHP 4 is way long ago and there

Re: [PHP] Class Problems

2009-08-11 Thread Ashley Sheridan
On Tue, 2009-08-11 at 17:57 +0200, Aschwin Wesselius wrote: Ashley Sheridan wrote: And I really would use a PHP 5 server given the choice. I've tried speaking to the hosting company a few times, but they brush me off! Hi Ashley, And how is their SLA then? Do you take full

Re: [PHP] Class Problems

2009-08-11 Thread la...@garfieldtech.com
Ashley Sheridan wrote: On Tue, 2009-08-11 at 17:57 +0200, Aschwin Wesselius wrote: Ashley Sheridan wrote: And I really would use a PHP 5 server given the choice. I've tried speaking to the hosting company a few times, but they brush me off! Hi Ashley, And how is their SLA then? Do you

[PHP] class problems

2001-10-18 Thread Matt Williams
Any ideas why this won't output anything ?php class test { var $table = matt; function showName() { return $this-table; } } echo test::showName(); ? I have other classes along the similar lines but a lot bigger which work fine. I'm also using

Re: [PHP] class problems

2001-10-18 Thread Valentin V. Petruchek
@egroups. [EMAIL PROTECTED] Sent: Thursday, October 18, 2001 4:25 PM Subject: [PHP] class problems Any ideas why this won't output anything ?php class test { var $table = matt; function showName() { return $this-table; } } echo test::showName(); ? I have other classes along the similar

RE: [PHP] class problems

2001-10-18 Thread Matt Williams
{ var $table = val; function showName() { return $this-table; } } $test = new Test; echo $test-showName(); ? M: -Original Message- From: Valentin V. Petruchek [mailto:[EMAIL PROTECTED]] Sent: 18 October 2001 14:39 To: [EMAIL PROTECTED] Subject: Re: [PHP] class problems

RE: [PHP] class problems

2001-10-18 Thread Valentin V. Petruchek
Sorry and thanks - have not use it before/ But i've tried this: ?php class test { function showName() { $this-qtable = 'val'; return $this-qtable; } } echo test::showName(); ? worked :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For