Jakebert Posted September 7, 2009 Share Posted September 7, 2009 Hi, I'm getting this error: Parse error: syntax error, unexpected T_STRING in /www/vndv.com/j/e/i/jeidinger/htdocs/Swim/generate_comment.php on line 22 Line 22 is: include_once ("auth.php"); include_once ("authconfig.php"); include_once ("check.php"); if (($check['level'] != 5) || ($check['level'] != 4) || ($check['level'] != 3)) { print "<font face="Arial" size="5" color="#FF0000">"; print "<b>Illegal Access</b>"; print "</font><br>"; print "<font face="Verdana" size="2" color="#000000">"; print "<b>You do not have permission to view this page.</b></font>"; exit; // Stop script execution } Someone know why this is happening? Link to comment https://forums.phpfreaks.com/topic/173469-t_string-error/ Share on other sites More sharing options...
Cosizzle Posted September 7, 2009 Share Posted September 7, 2009 It's your quotations you're using within the prints. try this print "<font face='Arial' size='5' color='#FF0000'>"; print "<b>Illegal Access</b>"; print "</font><br>"; print "<font face='Verdana' size='2' color='#000000'>"; print "<b>You do not have permission to view this page.</b></font>"; etc.. Link to comment https://forums.phpfreaks.com/topic/173469-t_string-error/#findComment-914409 Share on other sites More sharing options...
Jakebert Posted September 8, 2009 Author Share Posted September 8, 2009 Thanks! That seemed to work! But now... Warning: include_once() [function.include-once]: Unable to access /auth.php in /www/vndv.com/j/e/i/jeidinger/htdocs/Swim/generate_comment.php on line 16 Warning: include_once(/auth.php) [function.include-once]: failed to open stream: No such file or directory in /www/vndv.com/j/e/i/jeidinger/htdocs/Swim/generate_comment.php on line 16 Warning: include_once() [function.include]: Failed opening '/auth.php' for inclusion (include_path='.:/usr/lib/php') in /www/vndv.com/j/e/i/jeidinger/htdocs/Swim/generate_comment.php on line 16 Warning: include_once() [function.include-once]: Unable to access /authconfig.php in /www/vndv.com/j/e/i/jeidinger/htdocs/Swim/generate_comment.php on line 17 Warning: include_once(/authconfig.php) [function.include-once]: failed to open stream: No such file or directory in /www/vndv.com/j/e/i/jeidinger/htdocs/Swim/generate_comment.php on line 17 Warning: include_once() [function.include]: Failed opening '/authconfig.php' for inclusion (include_path='.:/usr/lib/php') in /www/vndv.com/j/e/i/jeidinger/htdocs/Swim/generate_comment.php on line 17 Warning: include_once() [function.include-once]: Unable to access /check.php in /www/vndv.com/j/e/i/jeidinger/htdocs/Swim/generate_comment.php on line 18 Warning: include_once(/check.php) [function.include-once]: failed to open stream: No such file or directory in /www/vndv.com/j/e/i/jeidinger/htdocs/Swim/generate_comment.php on line 18 Warning: include_once() [function.include]: Failed opening '/check.php' for inclusion (include_path='.:/usr/lib/php') in /www/vndv.com/j/e/i/jeidinger/htdocs/Swim/generate_comment.php on line 18 include_once ("/auth.php"); include_once ("/authconfig.php"); include_once ("/check.php"); Any help would be appreciated! P.S. I tried it without the / Link to comment https://forums.phpfreaks.com/topic/173469-t_string-error/#findComment-914415 Share on other sites More sharing options...
bundyxc Posted September 8, 2009 Share Posted September 8, 2009 Try this: include_once ("/auth.php"); include_once ("/authconfig.php"); include_once ("/check.php"); Link to comment https://forums.phpfreaks.com/topic/173469-t_string-error/#findComment-914441 Share on other sites More sharing options...
dave_sticky Posted September 8, 2009 Share Posted September 8, 2009 Where are the three files (auth, authoconfig and check) in relation to generate_comment.php? Link to comment https://forums.phpfreaks.com/topic/173469-t_string-error/#findComment-914541 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.