Hi all,
I have some error message when i try to open a link from the index.php page.
This is the error:
Warning: file(./logon/success.html) [function.file]: failed to open stream: No such file or directory in C:\Program Files\xampp\htdocs\starcom\logon\logon.php on line 9
Warning: implode() [function.implode]: Bad arguments. in C:\Program Files\xampp\htdocs\starcom\logon\logon.php on line 9
Fatal error: Call to a member function MoveNext() on a non-object in C:\Program Files\xampp\htdocs\starcom\member\index.php on line 42
This is what i have in the logon.php.
<?php
//==================================
//Title: »áÔ±µÇ½
//Description: ÆóÒµ¶ÌÐÅ»áÔ±
//==================================
$tmp_thispath = $_SERVER["SCRIPT_NAME"];
$L_thispath = (dirname($tmp_thispath) == '/')?'./logon':'./logon';
$left = empty($_SESSION[corp_user])?addslashes(implode('', file("$L_thispath/default.html"))):addslashes(implode('', file("$L_thispath/success.html")));
//½âÎöÄ£°å
eval("\$left = \"$left\";");
?>
If i try to remove :'./logon' from $L_thispath = (dirname($tmp_thispath) == '/')?'./logon':'./logon'; to become $L_thispath = (dirname($tmp_thispath) == '/')?'./logon';. It will gives me this error.
Parse error: syntax error, unexpected ';' in C:\Program Files\xampp\htdocs\starcom\logon\logon.php on line 7
I'm not too sure where went wrong. Please help me.
Thanks in advance.
Joseph