Posted by Steve Belanger on 03/04/07 18:44
you would need to find the real path of your root directory while on the
main domain, and then use it while on the subdomain
ie, on root it might be something like (use $_SERVER['DOCUMENT_ROOT'] to get
the value)
/var/home/websitename/public_html/
just use that document root you get from the main domain and it should work.
hope this helps
"nutz" <mike-dean@ntlworld.com> wrote in message
news:1172842857.513889.176370@z35g2000cwz.googlegroups.com...
> Hi, can anyone quickly solve this little problem please?
> I need to reference my $phpbb_root_path but none of the examples
> offered work because I'm using a subdomain. My phpbb is at root level,
> e.g. mydomain.com/ and the page I want to execute a call from is at
> newpages.mydomain.com/
> Rather than try to work through the ../../ hierarchies I thought I'd
> instead give a fixed URL reference for it, but that doesn't seem to
> work either -
> <?php
> $phpbb_root_path = 'http://www.mydomain.com';
> gives me the error "$phpbb_root_path is wrong and does not point to
> your forum."
>
[Back to original message]
|