Re: OOP Newbie - why does this not work?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



would have to be.

http://smileaf.org/bob.php

as you can see it's working great.

did make  few more changes:
			class Test {
				public $saying = "";

				function __construct() {
					$this->saying = "I'm in the Test Class." ;
				}
				function get() {
					return $this->saying ;
				}
			}

when accessing a class variable _always_ in php use $this->

On Friday 21 October 2005 04:42 am, Bob Hartung wrote:
> Stephen,
>    I copied your code and ran it.  Same thing - a totally blank page.
> Therefore I have to surmise that there is a a) bug in the rpm I
> downloaded or more likely b) I have a conf setting wrong.  I will
> investigate further -- boy oh boy what a way to start!  Every line of
> code is a new chance to learn.
>
> Thanks again,
>
> Bob
>
> <<snip all before >>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux