PDA

View Full Version : [PHP] Code Error.



MattUH
28-06-2006, 07:13 PM
Warning: main(/include/session.php): failed to open stream: No such file or directory in /home/th/public_html/home/tester.php on line 2

Warning: main(/include/session.php): failed to open stream: No such file or directory in /home/th/public_html/home/tester.php on line 2

Warning: main(): Failed opening '/include/session.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/th/public_html/home/tester.php on line 2


My Code:

<?
include("/include/session.php");
if(!$session->logged_in){
?>

<span class="page_title"><b><center>No Permission&nbsp;</center></span></b></font><br>
<img border="0" src="images/confused.gif" align="left" width="39" height="108">Sorry,
but you currently do not have permission to view this page,
<p>This may be due to the following reasons:</p>
<ul>
<li>You need to be logged in to view the content</li>
<li>Your account is not activated</li>
<li>This page is currently not available towards public</li>
<li>This page is not viewable unless your Staff</li>
</ul>


<?
}
/* User is logged in */
else{
?>

Hello admins - content will come here after this damn thing works ;]


<?
}
?>

Thanks. :]

Mentor
28-06-2006, 07:31 PM
... you read dont understand that error message?

Warning: main(/include/session.php): failed to open stream: No such file or directory in /home/th/public_html/home/tester.php on line 2

or even simpler. The file session.php in the include diredory isnt there. You ether need to upload it, or correct the url.

MattUH
28-06-2006, 07:32 PM
i've tried and didint wish to work ;l

Want to hide these adverts? Register an account for free!