Jump to content

T_STRING error?


Jakebert

Recommended Posts

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.