Path of the class file of an object
| From: | Ali Çevik | Date: | Sat, 06 Sep 2008 19:08:45 +0000 |
| Subject: | Path of the class file of an object | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-279602@lists.php.net to get a copy of this message | ||
Dear all,
I need a procedure or an implementation that gives path of the class file of
an object which I pass as a parameter.
Example;
Assume I have a class file located at C:\htdocs\Foo.class.php
In code after I include Foo.class.php;
<?php
$foo = new Foo();
Echo some_procedure($foo);
?>
I'm looking an implementation for that "some_procedure", which would make
this program to print C:\htdocs\Foo.class.php .
I have been googling around and also checked php.net but I wasn't able to
find anything about this subject.
It would be really helpful if someone knows that kind of procedure or at
least has an implementation of it.
Thanks in advance,
Ali Çevik