In your scripts, you have to include the
class file. for example :
Suppose below is your class :
<?php
class myclass{
function sayhello(){
echo "hi";
}
} / yourclassfile.php /
?>
TO use it in your scripts:
<?php
require('yourclassfile.php'); / include/
/Instanciate the class /
/ $yourclass is the variable you defined /
$yourclass = new myclass;
/ access the method of the class /
/ "hi" will display at your file /
$yourclass->sayhello();
?>
Hope this help : )