what do you mean by declared classes or include/requires

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
dude81
Forum Regular
Posts: 509
Joined: Mon Aug 29, 2005 6:26 am
Location: Pearls City

what do you mean by declared classes or include/requires

Post by dude81 »

Hello all,

I've used to set_include_path() to call a custom library that I wrote with classes. What I did was I'm able to get all the classes of all other includes except for my library classes. If I'm using include_once or required_once it includes while if I'm using class_exists method, it does not verify the classes that are in my lib.

Also what is this declared classes.
User avatar
Salaria
Forum Commoner
Posts: 34
Joined: Fri Feb 13, 2009 2:50 am
Location: India
Contact:

Re: what do you mean by declared classes or include/requires

Post by Salaria »

Hi,

Can you please paste for better understanding.
You can also use __autoload function to load your classes. check link for reference http://php.net/manual/en/language.oop5.autoload.php
User avatar
dude81
Forum Regular
Posts: 509
Joined: Mon Aug 29, 2005 6:26 am
Location: Pearls City

Re: what do you mean by declared classes or include/requires

Post by dude81 »

Thank You Salaria, I too figured out the same one. It was about autoloading feature itself. I did not to use it earlier.
Post Reply