pH-7/Obfuscator-Class

Parse error problem & fix

arcencielltd opened this issue · 3 comments

Although the supplied examples worked fine, when I tried with my own code I got:
"Parse error: syntax error, unexpected '<', expecting end of file"
I contacted Pierre-Henry and he very kindly gave me the solution which is to omit the opening and closing "" tags around the code.

I've get the same error "Parse error: syntax error, unexpected '<', expecting end of file" and i didnt get your solution , may you clarify please ?

The examples I saw were bracketed by double-quote signs so I put those into my code. In fact, those are not valid. Make sure your code starts with a less-than sign and ends with a semi-colon.

pH-7 commented

Looks like you included also the PHP open tag ‘<?php’

Please make sure to omit it before to obfuscate the code. Thanks!