Post
by CirTap » Thu Jan 17, 2008 12:47 pm
Hi,
if the component is not supposed to be used by others, the code would be ok.
As soon as J! is installed in a subdirectory this line / component will certainly fail, thus $mosConfig_absolute_path is the right way to go for J! 1.0.x
I also found several bizarre hosters where $_SERVER['DOCUMENT_ROOT'] did not report the expected path, rendering this value pretty useless unreliable.
In J! 1.5 a bunch of additional path constants are made available to shorten (and standarddize) things a bit more:
include_once JPATH_COMPONENT . DS . 'com_devtest' . DS .'devtest.config.php';
Have fun,
CirTap
You can have programs written fast, well, and cheap, but you only get to pick 2 ...
"I love deadlines. I like the whooshing sound they make as they fly by." Douglas Adams