I would like to make use of two separate PHP applications which happen
to share some class names; trying to include both from one script
results in the expected error, "cannot redefine class foo." or somesuch.
Using a fully qualified URL instead of the local file path in the
include() would work, except that the applications then do not have
access to the users cookies -- the requests are coming from the server
itself, not the user.
The virtual() function seems to be in flux -- there seems to be
disagreement as to whether it is supposed to work with .php files;
besides it doesn't work on the two servers I have.
So, is there a way to include a .php file such that it is evaluated
outside of the context of the php script from which it is included, in
its own namespace, but so that the request for the file still comes from
the user's browser itself?
I don't want to use frames for UI reasons. Thanks for any advice,
Nathan
to share some class names; trying to include both from one script
results in the expected error, "cannot redefine class foo." or somesuch.
Using a fully qualified URL instead of the local file path in the
include() would work, except that the applications then do not have
access to the users cookies -- the requests are coming from the server
itself, not the user.
The virtual() function seems to be in flux -- there seems to be
disagreement as to whether it is supposed to work with .php files;
besides it doesn't work on the two servers I have.
So, is there a way to include a .php file such that it is evaluated
outside of the context of the php script from which it is included, in
its own namespace, but so that the request for the file still comes from
the user's browser itself?
I don't want to use frames for UI reasons. Thanks for any advice,
Nathan
Comment