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
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
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
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
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
Try to create an instant of the class like this:
?php
class test
{
var $table = val;
function showName()
{
return $this-table;
}
}
$test = new Test;
echo $test-showName();
?
- Original Message -
From: Matt Williams [EMAIL PROTECTED]
To: PHP General List [EMAIL PROTECTED];
{
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
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
8 matches
Mail list logo