Parse error: syntax error, unexpected token “and”, expecting end of file in D:CPIT405Lab-examPHPphp.ini-development on line 188
Hello everyone,
I’m encountering a parse error when trying to run a local PHP server using PowerShell. Here’s the command I used:
php -C D:CPIT405Lab-examPHPphp.ini-development -S localhost:3000
I checked the php.ini-development file at the specified line, but I couldn’t identify any issues. Here’s a screenshot of
the relevant part of the file.
; This directive determines whether or not PHP will recognize code between
; <? and ?> tags as PHP source which should be processed as such. It is
188 line; generally recommended that <?php and ?> should be used and that this feature
; should be disabled, as enabling it may result in issues when generating XML
; documents, however this remains supported for backward compatibility reasons.
; Note that this directive does not control the <?= shorthand tag, which can be
; used regardless of this directive.
; Default Value: On
; Development Value: Off
; Production Value: Off
; https://php.net/short-open-tag
short_open_tag = Off
Any insights into what might be causing this error or how to resolve it would be greatly appreciated!
Thank you in advance for your help!
mhnd is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.