I am sure all of you are great programers but First i am no code programmer i am just trying to learn to run my sites, will the problem is i got a code from the web to protect my files ,1st i want to know how to work it out then i will try other things but can't let it go without a fight thanx all
***** PLEASE USE
Code: Select all
TAG WHEN POSTING CODE *****[/color]Code: Select all
<?php
if ( ! defined( 'myname' ) )
{
print "You cannot access this file directly.";
exit();
}
customer data here
?>all i want is to protect the file not to be opened directly but how to implement it in a frame or something like
display the contents in a frame or echo the source code as the file is a customer data please i am stuck and can't launch this small site
thanx in advance