ukpapillon Posted March 14, 2007 Share Posted March 14, 2007 Hi, I use Video Share Entreprise script on VPS. I've been having a difficult time for the last couple of weeks to fix this php error message showing on my homepage: Warning: chk_language(language/.php) [function.chk-language]: failed to open stream: No such file or directory in /home/videomy/public_html/include/function.php on line 35 Warning: chk_language(language/.php) [function.chk-language]: failed to open stream: No such file or directory in /home/videomy/public_html/include/function.php on line 35 Warning: chk_language() [function.include]: Failed opening 'language/.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/videomy/public_html/include/function.php on line 35 I've asked help all over the net. Everyone's giving me different answers and none of them works. You can see the error message on my home page @: http://www.videomyst.com ,and if you select Japanese on the language box on the top right, everything goes back to normal ??? Below is the function.php code: <?php //CHECK HOTORNOT ADMINISTRATOR LOGIN function chk_admin_login() { global $config; if($_SESSION['AUID']!=$config[admin_name] || $_SESSION['APASSWORD']!=$config[admin_pass]) { header("Location:$config[baseurl]/siteadmin/login.php"); exit; } } //CHECK LANGUAGE SELECTED function chk_language() { global $conn; if ($_SESSION[lang] == 'english') { include("language/en_US.php"); } elseif($_SESSION[lang] == 'japanese') { include("language/ja.php"); } else { $sql="select * from sconfig where soption='language'"; $rs=$conn->execute($sql); $default=$rs->fields[svalue]; include("language/$default.php"); } } Please help me to sort this out. If you need to see the whole code or other files, I can upload them. Link to comment https://forums.phpfreaks.com/topic/42677-how-to-fix-failed-opening-languagephp-for-inclusion-help/ Share on other sites More sharing options...
papaface Posted March 14, 2007 Share Posted March 14, 2007 This doesnt look like a php problem - more of a permissions. Make sure the permissions are set to 755 on the includes directory. Link to comment https://forums.phpfreaks.com/topic/42677-how-to-fix-failed-opening-languagephp-for-inclusion-help/#findComment-207048 Share on other sites More sharing options...
ukpapillon Posted March 14, 2007 Author Share Posted March 14, 2007 Hi papaface Ok...I'll see now if the permission is correct Link to comment https://forums.phpfreaks.com/topic/42677-how-to-fix-failed-opening-languagephp-for-inclusion-help/#findComment-207052 Share on other sites More sharing options...
ukpapillon Posted March 14, 2007 Author Share Posted March 14, 2007 Hi, Changed the permissions, still the same problem Link to comment https://forums.phpfreaks.com/topic/42677-how-to-fix-failed-opening-languagephp-for-inclusion-help/#findComment-207057 Share on other sites More sharing options...
ukpapillon Posted March 14, 2007 Author Share Posted March 14, 2007 Any other solution? Link to comment https://forums.phpfreaks.com/topic/42677-how-to-fix-failed-opening-languagephp-for-inclusion-help/#findComment-207069 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.