[PHPLIB] advantage of page_open() From: admin (admin <email protected>)
Date: 01/06/00

What is the advantage of calling a class in page_open rather than directly
from the php file? For example, I created a Utilities class for utilities
I happen to use often. I then proceeded to include that class in page.inc,
using the same syntax as for sess, auth, perm, etc. I also added my
util.inc file to prepend.php3, and everything is working well. Looking
back on my work, I wonder if it's really worth it. More importantly, I'd
like to know how I can JUSTIFY using page_open:
page_open(array("sess" => "Session", "util" => "Utilities"));

Of course, this assumes I only need Utilities when I intend to use
Session, which happens to be my case. Nevertheless, I could very well use
something like this:
include("util.inc");
$util = new Utilities;

Any comments would be appreciated...
Marc Tardif

-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.