<?php // index.php
include( 'plik.php' );
?>
<?php //plik.php
if ( defined('hwao') ) die( 'Ten plik mozna tylko zalanczac:)' );
echo 'a tego nie widzi nie zalaczona:)';
?>
Cytat
This can be useful if you want to protect pages which get included from outsiders eyes, on your mail page (the page viewable by people) put define("X", null); then on all your other pages, you can then do something like:
<?php
echo \"You Cannot Access This Script Directly, Have a Nice Day.\"; }
?>
Cytat
And your page is a good as protected
