I am using a Joomla website which runs from the root of my web folder (public_html), and within this domain i am running a number of my own applications which are held in sub folders.
For this example assume public_html is the joomla public application, and public_html/admin is the location of my third party applcation.
I am trying to get single sign on to work, by accessing Joomla Session variables and then passing later into iframe.
The code i have so far is:
define('JPATH_BASE', "/home/sites/accredits.co.uk/public_html" );
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
But this is generating the following error in the 2nd app:
Warning: require_once(/home/sites/accredits.co.uk/public_html/includes/defines.php): failed to open stream: No such file or directory in /home/sites/8b/e/e7cd425fb2/public_html/admin/include/appsettings.php on line 651
Fatal error: require_once(): Failed opening required '/home/sites/accredits.co.uk/public_html/includes/defines.php' (include_path='.:/usr/share/pear') in /home/sites/8b/e/e7cd425fb2/public_html/admin/include/appsettings.php on line 651
I believe the problem may be down to the base path but i am not sure, has anyone else seen this