If ...">

Is it possible to view PHP content that is not reflected?

Imagine the following PHP file:

<?php
  $topSecret = "Something important";
?>

If I put this on a server on which the standard LAMP setting is installed, how would anyone know $topSecret?

If the variable is not reflected, is it vulnerable? The actual application of this may be database credentials stored in the root directory of the web server.

+5
source share
2 answers

PHP , . ; - Facebook. , ( ..) php , -. ( ) , apache (deny all).

+13

.

.

, ​​ -, .

+6

All Articles