简体   繁体   中英

Website printing out code

The website: Website

You can see the problem i'm having on the website above, i have no idea why this happens. I've got PDO, PhP, httpd, php-mysql and so on and it still doesn't work.

I've tried reinstalling the whole thing. I've followed countless tutorials on how to fix the usual "printing out code" problems.

It's not php, cause i can to phpinfo(); phpinfo can be found on this webpage.

Mysql is working, cause that caused a different error that doesn't show up now. Is there anything else i might've forgotten?

Thanks.

Your short_open_tag is Off turn it on.

Your code is written using short tags <? ?> <? ?> and due to this Off parameter,

it expects to be <?php ?>

To do it, go to your php.ini and change short_open_tag to On

Your server does not have short tags enabled . You either need to enable it or change your short opening tags ( <? ) to full opening tags ( <?php )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM