<?php class lng { function lng() { $this->lng = &$GLOBALS['table']['lng']; } function check() { if($_SESSION['lng'] == '') { if($lng == '') { $lng = 'en'; } { $_SESSION['lng'] = 'en'; } else { $_SESSION['lng'] = $lng; } } } } ?>
Jednak jak włączam strone to pokazuje mi się następujący error
Kod
Warning: index(lang//index.lng.php): failed to open stream: No such file or directory in class/ret.cl.php on line 17
Warning: index(lang//index.lng.php): failed to open stream: No such file or directory in class/ret.cl.php on line 17
Warning: index(): Failed opening 'lang//index.lng.php' for inclusion (include_path='.:/usr/local/lib/php') in class/ret.cl.php on line 17
Warning: index(lang//index.lng.php): failed to open stream: No such file or directory in class/ret.cl.php on line 17
Warning: index(): Failed opening 'lang//index.lng.php' for inclusion (include_path='.:/usr/local/lib/php') in class/ret.cl.php on line 17
Czyli wychodzi ze nie ma zmiennej $_SESSION['lng'] bądź jest pusta... dlaczego to może się tak dziać ?
Co lepsze ... po odświezeniu strony ... wszystko działa bez problemów.
Sprawdzałem to na: Ie, Nestspace, FireFox, i Operze .... na każdym to samo