Report this

What is the reason for this report?

why php function in some location, but not other ??

Posted on February 3, 2014
FMCB

By FMCB

Hi mates,

Look I have some serious issue in here. when I go to a folder that contain index.php, the full php code shows up plain instead of being hidden since it is the php property to hide whatever inside it. for example, when I go to any of my domain folder like this domain.com/app/ the code shows up as a plain code while it is supposed to be hidden… or it should search for index.php or index.html…, but it doesn’t.

However, when I go to the same folder and I write domain.com/app/index.php… this way it works and only this way, which is high risk since a hacker can see my php content and break into my site easily…

anyone knows how to fix this issue??

Thanks



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

is your code between the php tags? <br><?php <br>… <br>?>

< ?php ( no space )

What webserver are you using?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.