Hallo,
ich habe nur eine phpinfo(); auf einer Seite:
https://foodnetwork.000webhostapp.com/info.php , leider wird mir da nichts angezeigt. Ein Blick auf den Quelltext zeigt, dass das php in Kommentare gesetzt ist.
Könnt Ihr mir da helfen? Ich habe schon alle PHP-Versionen ausprobiert.
Vielen Dank!
teodor
August 8, 2017, 11:30am
#2
Hi @kirro0107 !
Make sure you output the return to the browser:
print(phpinfo());
Hi @NGiNX ,
it is still surround the phpinfo in comments. See link in my first post!
teodor
August 8, 2017, 12:07pm
#4
Oh, you’re using short PHP tags <? / ?>
which are deprecated.
Either use normal PHP tags <?php / ?>
instead (recommended) , either read this topic to see how to add support for them:
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