Reply to Re: [PHP] OOP Newbie - why does this not work?

Your name:

Reply:


Posted by Stephen Leaf on 10/21/05 16:32

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 >>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация