Donncha O Caoimh wrote:
> Tony Clarke wrote:
> >
> > Firsty: How can I reference variables contained within other php files?
> > Say I have two frames and they want to know about each others variables.
>> That'd be a job for Javascript, and even then both frames have to come
> from the same host because of the sandbox..
Right I'm confronted with this sandbox ( or whatever it is) problem. Any way to
turn it off/on?
Is it just a security thingy??
>> If it's on the server you're talking about, then that's a whole bigger
> problem and related to the question I posted yesterday about shared
> memory and PHP..
>> >
> > Secondly: Can I have a class which contains maybe an array of other class type
> > b?
> >
> > class A
> > {
> > $var = new classbname();
> > }
> >
> > I get some error messages when I try this.
> >
> > "Parse error: parse error, expecting
> > `T_OLD_FUNCTION' or `T_FUNCTION'
> > or `T_VAR' or `'}''
> > "
>> Yep.. I've done it several times. but put the "$var = new classbname();"
> inside the constructor for the class.
>> Donncha.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!