Re: Object Oriented

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

 



Thanks Much

"Gaguwd" <larenga2985@yahoo.com.ar> wrote in message
PAEKIBPEBDMPALHFKNCKKEGDCMAA.larenga2985@yahoo.com.ar">news:PAEKIBPEBDMPALHFKNCKKEGDCMAA.larenga2985@yahoo.com.ar...
> You need to include the class in the script for it to work. You are
calling
> a class that isn't on the file.
>
> Bye!
> MG29
>
> -----Mensaje original-----
> De: Rocco CAstoro [mailto:roccoman@tampabay.rr.com]
> Enviado el: Sábado, 15 de Noviembre de 2003 08:07 p.m.
> Para: php-windows@lists.php.net
> Asunto:  Object Oriented
>
>
> 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
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux