ukpapillon
Members-
Posts
15 -
Joined
-
Last visited
Never
Profile Information
-
Gender
Not Telling
ukpapillon's Achievements
Newbie (1/5)
0
Reputation
-
How to Fix: Failed opening 'language/.php' for inclusion. Help
ukpapillon replied to ukpapillon's topic in PHP Coding Help
Any other solution? -
How to Fix: Failed opening 'language/.php' for inclusion. Help
ukpapillon replied to ukpapillon's topic in PHP Coding Help
Hi, Changed the permissions, still the same problem -
How to Fix: Failed opening 'language/.php' for inclusion. Help
ukpapillon replied to ukpapillon's topic in PHP Coding Help
Hi papaface Ok...I'll see now if the permission is correct -
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.
-
How do I configure the default language setting? I believe this is the problem. There's only 2 languages to select from my homepage : English and Japenese. When the error message appear on my homepage, if I select Japenese, everything goes normal and the message don't show anymore. Strange ..... I'm using a VPS server and can access to all files. This is for a video share website. Its quite a big program. All I need is your guidance on how to config. the default language
-
Hi, This is the function.php code and the problem seems to be on line 35 <?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"); } } //CHECK HOTORNOT MEMBER LOGIN function chk_member_login($viewkey="") { global $config,$conn; $sql="select * from signup where UID=$_SESSION[uID]"; $rs=$conn->execute($sql); if($_SESSION['UID']=="" || $_SESSION['EMAIL']=="" || $rs->recordcount()==0) { $q = ""; while(list($k,$v)=each($_GET)){$q.="&$k=$v";} $q=base64_encode($q); if($q!="")$add="&add=$q"; $temp=$_SERVER['PHP_SELF']; $path=explode("/",$temp); $page=$path[count($path)-1]; $page=str_replace(".php","",$page); header("Location:$config[baseurl]/signup.php?next=$page$add"); exit; } }
-
??? Hi, I've tried everything to sort this php error message below appearing on my website: Warning: chk_language(language/.php) [function.chk-language]: failed to open stream: No such file or directory in /home/mysite/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/mysite/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/mysite/public_html/include/function.php on line 35 I've re-installed the script, checked permissions, checked php code and there's no errors on database. I don't understand, everything seems ok. Its been days since I've tried to sort this problem out.... :'( Please, can anyone help me here?
-
PHP error message keeps on showing. Need your help
ukpapillon replied to ukpapillon's topic in PHP Coding Help
Sorry for not answering to your question sooner. My computer crashed for the last few days. I checked also the permissions and they are the same. -
PHP error message keeps on showing. Need your help
ukpapillon replied to ukpapillon's topic in PHP Coding Help
Hi Jesirose Thank you so much for helping me. Sorry I took long to reply. Had to go out. Below is the rest of the script. Its quit a long code ( cannot insert the whole code): //CHECK HOTORNOT MEMBER LOGIN function chk_member_login($viewkey="") { global $config,$conn; $sql="select * from signup where UID=$_SESSION['UID']"; $rs=$conn->execute($sql); if($_SESSION['UID']=="" || $_SESSION['EMAIL']=="" || $rs->recordcount()==0) { $q = ""; while(list($k,$v)=each($_GET)){$q.="&$k=$v";} $q=base64_encode($q); if($q!="")$add="&add=$q"; $temp=$_SERVER['PHP_SELF']; $path=explode("/",$temp); $page=$path[count($path)-1]; $page=str_replace(".php","",$page); header("Location:$config[baseurl]/signup.php?next=$page$add"); exit; } } function session_to_db() { global $conn; $sql="select * from signup where UID=$_SESSION[uID]"; $rs=$conn->execute($sql); if($rs->recordcount()>0) { $_SESSION[emailVERIFIED]=$rs->fields['emailverified']; } } //MAIL FUNCTIION function mailing($to,$name,$from,$subj,$body,$bcc="") { global $SERVER_NAME; $subj=nl2br($subj); $body=nl2br($body); $recipient = $to; if($bcc!="") $headers = "Bcc: " . $bcc."\n"; $headers .= "From: " . $from . "\n"; //$headers .= "X-Sender: <" . "$to" . ">\n"; //$headers .= "Return-Path: <" . "$to" . ">\n"; //$headers .= "Error-To: <" . "$to" . ">\n"; $headers .= "Content-Type: text/html\n"; mail("$recipient","$subj","$body","$headers","-f$from"); } //EMAIL VERIFICATION function isMailVerified() { global $config; if($_SESSION[emailVERIFIED]=="no") { header("Location:$config[baseurl]/confirm_email.php"); } else if ( $_SESSION['EMAILVERIFIED']=="off" ) { header("Location:$config[baseurl]/confirm_email.php?flag=off"); } } function is_commented($vid) { global $config,$conn; $sql="select count(*) as cnt from comments WHERE VID=$vid and UID=$_SESSION[uID]"; $rs=$conn->execute($sql); if($rs->fields[cnt]>0) return "yes"; } function is_video_commented($vid) { global $config,$conn; $sql="select be_comment from video WHERE VID=$vid"; $rs=$conn->execute($sql); return $rs->fields[be_comment]; } function is_video_rated($vid) { global $config,$conn; $sql="select be_rated from video WHERE VID=$vid"; $rs=$conn->execute($sql); return $rs->fields[be_rated]; } function is_video_embabed($vid) { global $config,$conn; $sql="select embed from video WHERE VID=$vid"; $rs=$conn->execute($sql); return $rs->fields[embed]; } } ?> -
PHP error message keeps on showing. Need your help
ukpapillon replied to ukpapillon's topic in PHP Coding Help
Below is the language.php script: <?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"); } } This is where there's a problem. Line 35 ??? -
Hi, My homepage shows the error messages below: Warning: chk_language(language/.php) [function.chk-language]: failed to open stream: No such file or directory in /home/mysite/public_html/include/function.php on line 35 Failed opening 'language/.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mysite/public_html/include/function.php on line 35 Presently, there's two languages options to choose from, (english/japenese)English is the default. Strangely when I select japenese, my homepage goes back to normal with all the features working perfectly. I've tried everything. Restore the files, repair..etc.. I cannot find the source of the problem and this is driving me insane ??? I am using VPS hosting. Please can someone help me here Maria