problem with including classes
| From: | Andrey Zmievski | Date: | Tue, 06 Jul 1999 21:15:28 +0000 |
| Subject: | problem with including classes | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-1917@lists.php.net to get a copy of this message | ||
Having a problem with including files with classes, it seems.
MySQL.inc has class MySQL defined.
Then I have a script:
<?
include "MySQL.class";
print ini_get("include_path");
class A_SQL extends MySQL {
var $test = "";
}
?>
And when I run it, I get:
Fatal error: Undefined parent class 'mysql' in
/export/home/staff/andrey/www/php/test.phtml on line 7
Even though it seems to find the include file and all. require() seems to
work though.
-Andrey
* Programming is an art form that fights back. *