Welcome Guest, Not a member yet? Register   Sign In
Unexpected T_STRING ... Only in "production" server
#1

[eluser]Unknown[/eluser]
[solved - I will leave this here in case somebody needs it.]

Hi!!
I usually create my apps in my local server then before deployement i test it on a live test server.

The problem is:
In my server everything works perfect.
In the test server somehow and with only one controller file, i receive a syntax error:

PHP Parse error: syntax error, unexpected T_STRING in [..] on line 1

While i was writting this post.. i noticed that the lines in the offending file ended with
the character [CR] (UTF8 without BOM encoded) then i changed that to [CR][LF] and.. everything worked fine..




Theme © iAndrew 2016 - Forum software by © MyBB