Forum Moderators: coopster

Message Too Old, No Replies

strange include problem

         

mschultem

5:14 pm on Mar 9, 2007 (gmt 0)

10+ Year Member



hi,

when adding error_reporting(6143) after <? of this php code i get an error telling me 'unexpected T_INCLUDE' ...


<?
// include database connection
include("paneldb.inc.php");

without the error_reporting the include works fine
any idea why?

thanks
m

Little_G

5:35 pm on Mar 9, 2007 (gmt 0)

10+ Year Member



Hi,

Sounds like you missed off the semi-colon after error_reporting.

Andrew

coopster

5:35 pm on Mar 9, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Yeah, you forgot to terminate the line ;)
<? 
error_reporting(6143);
// include database connection
include("paneldb.inc.php");
?>

mschultem

5:39 pm on Mar 9, 2007 (gmt 0)

10+ Year Member



damit ...
thanks for opening my eyes ...