Skip to main content Help Control Panel

YACS CMS : Open source !

Community «   Discussion forum «   Installation support «   web address != to physical directory, install problem «  

Comment: web address != to physical directory, install problem

<< Previous Next >>
gah... this is hopeless... YACS isn't designed to run on a subdomain.

You use $_SERVER['SERVER_NAME'] everywhere. As I established above that isn't a variable one should use, since its not always accurate.

Quoted from PHP manual:

" 'HTTP_HOST'

Contents of the Host: header from the current request, if there is one. "


If this variable exists it should always be used over 'SERVER_NAME'.

by Raeky on Aug. 1 2004