Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.