JustCinek
05-06-2014, 21:36
Witam,
mam problem z zaimplementowaniem bibliotek Joomli do kodu PHP napisanego przeze mnie. Dokładniej potrzebuję pobrać ID aktualnie zalogowanego użytkownika.
Oto co mam w pliku:
if(!defined('_JEXEC')){ define( '_JEXEC', 1 );}
if(!defined('DS')){ define( 'DS', DIRECTORY_SEPARATOR );}
if(!defined('JPATH_BASE')){ define( 'JPATH_BASE', dirname(__FILE__) );}
echo JPATH_BASE . DS . 'libraries' . DS . 'import.php<br>';echo JPATH_BASE . DS . 'configuration.php<br><br>';require_once( JPATH_BASE . DS . 'libraries' . DS . 'import.php' ) or die(); // frameworkrequire_once( JPATH_BASE . DS . 'configuration.php' ) or die(); // config file
Ścieżki wyświetlają się poprawne lecz:
Warning: require_once(1): failed to open stream: No such file or directory in /home/justcine/public_html/scienceathomev2/scripts/surveys.php on line 13 Fatal error: require_once(): Failed opening required '1' (include_path='.') in /home/justcine/public_html/scienceathomev2/scripts/surveys.php on line 13
Problem w tym że plik istnieje.
Proszę o pomoc.
mam problem z zaimplementowaniem bibliotek Joomli do kodu PHP napisanego przeze mnie. Dokładniej potrzebuję pobrać ID aktualnie zalogowanego użytkownika.
Oto co mam w pliku:
if(!defined('_JEXEC')){ define( '_JEXEC', 1 );}
if(!defined('DS')){ define( 'DS', DIRECTORY_SEPARATOR );}
if(!defined('JPATH_BASE')){ define( 'JPATH_BASE', dirname(__FILE__) );}
echo JPATH_BASE . DS . 'libraries' . DS . 'import.php<br>';echo JPATH_BASE . DS . 'configuration.php<br><br>';require_once( JPATH_BASE . DS . 'libraries' . DS . 'import.php' ) or die(); // frameworkrequire_once( JPATH_BASE . DS . 'configuration.php' ) or die(); // config file
Ścieżki wyświetlają się poprawne lecz:
Warning: require_once(1): failed to open stream: No such file or directory in /home/justcine/public_html/scienceathomev2/scripts/surveys.php on line 13 Fatal error: require_once(): Failed opening required '1' (include_path='.') in /home/justcine/public_html/scienceathomev2/scripts/surveys.php on line 13
Problem w tym że plik istnieje.
Proszę o pomoc.