I create a project in php on hosting “000webhost”. The description contains support for PHP, but in fact for some reason PHP is not displayed correctly. Rate yourself https://simplyos.000webhostapp.com/
What does your code look like?
teodor
August 5, 2018, 9:24pm
#4
Hi @5DevStudio !
Please use long PHP tags instead of short ones: <?php / ?>
In addition, if you still want to support the short tags (but I do not recommend it) , follow this tutorial:
PHP short open tags is deprecated feature of PHP and is strongly discouraged. When your website loads php code instead of your website, usually this means that your php file starts with short version of php tags: <? this code shuld always be changed to <?php this is the correct way of starting php script.
To fix short tags open create .htaccess file in your public_html directory with content
php_value short_open_tag 1
1 Like