J
J
JohnDaniels2015-10-29 15:04:51
PHP
JohnDaniels, 2015-10-29 15:04:51

Why does a php file output its code to the browser?

There is a site on Bitrix. put ckeditor there, then ckifinder to load images.
when you click on "Select on the server" the browse.php file is accessed, which produces this:
8f07ea0901ee4e57b9c14092fb45ab2b.png
the file itself:
029eb85c85844015a2f28e1ae7eea8c0.png
if you create it in the test.php directory with an arbitrary code, then everything will work as it should.
there are no errors, the rest of the site works fine.
help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
inDeepCode, 2015-10-29
@inDeepCode

I think because it accesses through the /js/ directory, where the php interpreter does not work.

D
Dmitry Skogorev, 2015-10-29
@EnterSandman

Is there .htaccess in this folder or one level up?
What's in it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question