grabt access to my protected files

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Locked
galvar2bos
Forum Newbie
Posts: 5
Joined: Fri Aug 03, 2007 8:47 pm

grabt access to my protected files

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

cross-post, see viewtopic.php?t=71816
Locked