You are here: Re: root path problem « PHP Programming Language « IT news, forums, messages
Re: root path problem

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."
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация