Object Oriented

From: Date: Sat, 15 Nov 2003 23:07:09 +0000
Subject: Object Oriented
Groups: php.windows 
Request: Send a blank email to php-windows+get-22106@lists.php.net to get a copy of this message
I'm reading Sams teach yourself PHP4 in 24 Hours, printed in 2000, and It seems to be out of date with the current versions of PHP because when i try to do the example: <?php $obj1 = new first_class(); $obj2 = new first_class(); print "\$obj1 is a ".gettype($obj1)."<br>"; print "\$obj2 is a ".gettype($obj2)."<br>"; ?> It says Fatal error: Cannot instantiate non-existent class: first_class in C:\Program Files\Apache Group\Apache2\htdocs\Hour8-1.php on line 2 Why is this? Thanks

« previous php.windows (#22106) next »