Page 1 of 1

grabt access to my protected files

Posted: Sat Aug 04, 2007 12:22 am
by galvar2bos
Hi all,
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
?>
now i can't access my files :?: :roll: what is the method to access them

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

Posted: Sat Aug 04, 2007 12:39 am
by volka
cross-post, see viewtopic.php?t=71816