tylerdiaz / Crysandrea

Open Source avatar community engine.
Other
17 stars 11 forks source link

Fix "<? " starting php tag, potentially causing Parse Error: unexpect… #19

Closed acarlson1994 closed 8 years ago

acarlson1994 commented 8 years ago

Was receiving "Parse Error: Unexpected end of file" error. This might be caused by different PHP settings/versions. But starting with "<?php " seems to be safer than "<? " in general.

tylerdiaz commented 8 years ago

🙇 Thank you!

acarlson1994 commented 8 years ago

Hey @tylerdiaz. To allow the "<?" short tag one may need to set the option in php.ini. See here: http://us3.php.net/manual/en/ini.core.php#ini.short-open-tag I think its best to avoid them unless using throughout the entire application for consistently. Plus, for anyone wanting to use your project, they may have to explicitly set this.

I will hopefully be getting some work in with your project soon. I will let you know if I come across anything else. Thanks for uploading!