Posted by Toby A Inkster on 05/17/07 12:40
Ming wrote:
> 2) Can I just construct an object one time and use it in different <?
> php ... ?> blocks?
Well yes -- that's kind of the point. You create an object and then you
use it as many times as you like.
Also Google for: PHP Singleton Design Pattern
--
Toby A Inkster BSc (Hons) ARCS
http://tobyinkster.co.uk/
Geek of ~ HTML/SQL/Perl/PHP/Python/Apache/Linux
Navigation:
[Reply to this message]
|