Help with Parse Error in index.php!
Posted by: Tyben (---.lightspeed.milwwi.sbcglobal.net)
Date: January 16, 2018 05:44AM

Hi, I keep getting this parse error, causing me to not be able to access the localhost WAMP home screen. I can access other sub virtual hosts, even phpmyadmin. Just not the main layout. Please help

Here are the error(s):

"[16-Jan-2018 04:39:42 UTC] PHP Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in C:\Users\tyler\Desktop\HTML\Form Test\index.php on line 21"

"[16-Jan-2018 04:35:30 UTC] PHP Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in C:\Users\tyler\Desktop\HTML\Form Test\localhost\index.php on line 23"

Lines from index.php respectively:

21:
"$server_software = $_SERVER['SERVER_SOFTWARE'];"

23:
"" (This line is empty)

Thanks!

Options: ReplyQuote
Re: Help with Parse Error in index.php!
Posted by: Otomatic (Moderator)
Date: January 16, 2018 09:25AM

Hi,

> C:\Users\tyler\Desktop\HTML\Form Test\index.php

Not a Wampserver file.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.