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.

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.3 32 bit - Apache 2.4.33 - PHP 7.2.7/7.1.19/7.0.30/5.6.36 - MySQL 5.7.22 - MariaDB 10.3.7
Wampserver 3.1.3 64 bit - Apache 2.4.33 - PHP 7.2.7/7.1.19/7.0.30/5.6.36 - MySQL 5.7.22 - MariaDB 10.3.7
PhPMyAdmin 4.8.1 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote


Sorry, only registered users may post in this forum.