D
D
DIAgen2013-01-28 17:38:01
PHP
DIAgen, 2013-01-28 17:38:01

PHP outputs source code on errors

Good evening everyone.
I set up ispconfig on Ubuntu, in case of errors in php files, the source code of the script is displayed, for example
<?php echo '<pre>'; print_r($_SERVER)
Instead of an error, it displays
?php echo '<pre>'; print_r($_SERVER)
Already searched through the entire php.ini but there is no sense, can anyone come across how to fix it?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
DIAgen, 2013-01-28
@DIAgen

The problem was solved, the error turned out to be in FTP, when uploading files, the sign of the first sign < was cut off , now I'll see why

M
mayorovp, 2013-01-28
@mayorovp

The problem is not php, but apache. It seems that the php interpreter does not even reach.

A
Andrey L, 2013-01-28
@compudza

And the problem is not in the download mode? File Type Matching - Binary/ascii?

E
es14, 2013-01-29
@es14

If you want to avoid similar problems in the future, catch errors!
php.net/manual/en/function.set-error-handler.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question