Jul 27, 2008

Grabt Access To My Protected Files - grabt access to my protected files

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > PHP Programming

free web hosting

Grabt Access To My Protected Files - grabt access to my protected files

eskimmer
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

php:
CODE
<?php

if ( ! defined( 'myname' ) )
{
        print "You cannot access this file directly.";
        exit();
}

customer data here
?>



now i can't access my files 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

Notice from truefusion:
All coding must go into the CODE bbcode

 

 

 


Reply

shadowx
Is this the only bit of code you got from the web? the reasn i ask is this, in a login system there are essentially three steps:
1] I enter my username/password 2] The website checks them to see if theyre correct 3] If they are correct i get to see the page, if not i go back to step one.

the bit of code youve got there is basically only step 3, so the problem is the user doesnt get a chance to enter their username and you dont have any code to see if its right so step 3 cant actually work on its own!

If you have other source code you got from the net then steps 1 and 2 might be in there which is good, otherwise i would suggest finding a better script, i did write one of my own but without any php experience you would find it quite difficult to modify it to fit around your site


Reply

kuifjesjors
Cool, I love PHP (I need to post)

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : grabt, access, protected, files, grabt, access, protected, files

  1. Auto-upload Files With Filezilla And Autohotkey
    (0)
  2. How Can You Get Audio Files From Itunes Videos?
    (1)
    I need some help. How can you get audio files from iTunes videos? iTunes videos don't import
    into Windows Movie Maker so I don't know how. Is there a way to convert iTunes video files to
    kinds that are supported by Windows Movie Maker? Thanks in advance for help. /smile.gif"
    style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />....
  3. Naming Web Page Files
    Which way you like- MyPage.html or my-page.html or my_page.html (7)
    Everybody talks about meta tags, keywords, good title names and how they can increase page rankings,
    etc. But I was wondering whether the page name itself holds any value in indexing. Yes, I am
    talking about the web page file names (some-thing.html) NOT the one which you put in title tags. I
    am going to express my views and want to know what you think is correct. I have seen pages named in
    various ways like these: 1) my_web_page.html 2) DoYouLikeMyPage.html 3) hey-see-my-webpage.html (I
    think this way is more appropriate) 4) this.is.a.page.html (somewhat confusing) ....
  4. Audio Files?
    (5)
    I need some help. Is it possible to get audio files off of sites? Like IMEEM and YouTube. I know the
    whole http://www.file2hd.com thing. It doesn't always work though. Are there other ways? Is
    there a way people hack audio files off of sites? NOTE: I DO NOT WANT DO THIS! I merely want to
    know so that I can protect my sites from it. Thanks.....
  5. Jar Executable Files
    (1)
    I have been supplied with a digital log book for use this semester and it comes in the form of a
    .jar file and a .mdb file. I tried running it on my mac but it crashes every time but it seems to
    run perfectly on windows xp. Does anyone have any ideas why? I thought .jar files would be
    computable on any platform. ....
  6. Best Way To Transfer Files
    I just bought a laptop (6)
    Hi there guys, I just bought a brand new Dell Inspiron laptop for $729.99. It has a
    processing speed of 2.0ghz, 3GB RAM, and a 250gb hard drive. I'm really satisfied, especially
    with the wireless internet and the fact that I can carry my computer around with me, allowing you to
    use your computer in comfortable spots -- outside in the shade, on the train, or even in your bed
    where I'm using it write now as I type. If you didn't already guess, this is my first
    laptop. But I do have some issues. Does anyone happen to know an easy way to transfer some ....
  7. No Site Access
    (4)
    It was working the day before yesterday and then it started giving me error messages about not being
    able to access the site. I can't access cpanel either. Neither page ever loads. I don't
    have this problem with any other internet pages, just my site stuff on Trap17. My site's at
    www.jzambrano.trap17.com btw. This is one of the few times I'll need it up for sure so I'd
    appreciate if the issue can get fixed in the near future. ....
  8. 1350 Great Free Logos (jpg + Psd)
    With both jpg and original psd files to edit (7)
    1350 Great Free Logos (With both jpg and psd files)
    http://rapidshare.com/files/126291346/1346...Great.Logos.zip This is a great collection of
    logos, they are already made logos which you can use like that or just use to create other logos, do
    what you want, they are free, they came from free websites that give this logos for free and lot
    more, but i just took the good ones mainly. There is also a small collection of 100 logos inside
    the compressed file, which you can use to insert those graphics in your logo/design/web design
    projects, do what you want with them ....
  9. Can't Access My Site An Cpanel
    already did some sugested things (4)
    I still can't get to my website and cpanel, Tings I did: requested xisto to unblock my ip
    cleaned my cache/cookies Did this with both IE and FF When I am @ my dads house he can acces my
    website. So I guess it is still an ip problem. I did read some posts but couldn't find a
    solution. Thx in advance,....
  10. Can't Access My Site....weird Issue
    (5)
    Okay, so last night everything worked fine. I loaded up cpanel, fixed issues with the site after the
    database move, etc. Today I'm unable to load up the site. It just keeps giving me ping
    timeouts. With what I'm being told by others it is only me having this issue with my site, and
    yet there have been 0 changes to my pc between it working and not. I have tried multiple times
    during the day with no luck. Along with this, if I load my website using a proxy service then I do
    not have any issues. The only time it will not allow me to access it is if I am "using" my....
  11. Almost There, However.... [resolved]
    Cannot access webmail yet. (7)
    After all the troubles over the past week, I have everything set up, my access to MySQL databases
    restored, however, I cannot access my webmail yet. I log in on the screen before you get the choice
    which webmail to use (Squirrel, Horde or Roundcube), and when clicking on Horde I get "Login failed
    because your username or password are incorrect", with Squirrel mail i get; "ERROR: Connection
    dropped by IMAP server." and Roundcube (probably as the name implies) keeps going round in circles.
    According to the opening screen of cpanel, I have 3 email accounts (as it should be)....
  12. How Do I Find My Mysql Password? [resolved]
    Cannot access my MySQL (5)
    After all the recent problems, my account has been restored. I have setup my parked domain agin, and
    that works fine. However, I can no longer access my MySQL databases (I can from PHPMyAdmin, but
    that's all). I had to create a new user for my databases, and created the user with exactly the
    same username and password I had before, but some of my web pages do not let me access the pages I
    have associated with my databases. Where could i find out what my DB password is? (Although I am as
    good as sure I am using the right one). I have tried my old password, the new c....
  13. Official: Can't Access My Cpanel - Supports From Admins
    (69)
    Scroll down to Post #8 for Admin Support Ok I've read stuff here and there in the support
    forum and shoutbox about the recent trap17 server problem. I'm extremely confused. Some people
    say that their websites are working fine. Some people are experiencing different issues from mine,
    had their website reset or something. I can access my website on the gamma server, so I assume that
    if I unpark and park my domain again, I can get it to work like the last time. I accessed my cpanel
    at bishoujo.trap17.com/cpanel because the 'Access CPanel' link on the fo....
  14. I Cant Access The Server!
    (1)
    i can not establish a connection AT ALL!! my ftp program (Core FTP LE) cannot connect,
    neither can my online ftp..... also, i cannot log in to my cpanel!! in short, i
    cant do ANYTHING!!! can anyone help me?? better question, is the server down? and im
    not aware of it? /mad.gif" style="vertical-align:middle" emoid=":angry:" border="0" alt="mad.gif"
    />....
  15. Remote Access Mysql
    (8)
    Is it possible to directly access my local database from my website? For example, if somebody
    submits info on my website, the info they submitted would be transferred to my local database
    directly. Is that possible? And if so, how do I set that up? The reason I don't want to upload
    my database to my subdomain is because it would be difficult to keep the website database and my
    local database in sync . . . or is there a way to do that? Thanks for any replies.....
  16. Debug Exe Files
    How to debug an exe file. (4)
    Think that we have written a program, and some codes are wrong. We can go back to compiler and
    change the code, and compile again. But I will show you how to correct our mistakes without using
    the compiler. Let's start: I have written a program in Delphi. Let's see my mistake. I
    have created a form like this. After this I wrote the codes in the Compare Button click as
    below. CODE 1.   procedure TForm1.ComparebuttonClick(Sender: TObject); 2.   var
    3.     a,b:integer; 4.   begin 5.     a := StrToInt(EditA.Text); 6.     b :....
  17. Ftp Access Has Stopped Working All Of A Sudden [resolved]
    read (5)
    heres the login information i use add : ftp.sub-domain.qupis.com user: my username pass: my pass
    port: 21 i already opened a ticket and it seem pending at the moment but does anybody know a
    solution... im already having problems with php files. im getting a password error but i can open
    my account via web easily....
  18. Mysql
    Several files in one field. (2)
    Hi guys. I want t know if it is posible to have so many entries for one object in a field in MySQL.
    I know my question may not be clear because I lack in terminology but pliz try and help. What I want
    to do is for axample have a database of my clients with the following fields for every client:
    fname, lname, more than one photos, contrubutions(comments, jokes, testimonials posted) etc. I want
    to have the things like the photos in the same field but they have to be unique so that my php code
    can deal with them individually llike they are coming from different fields.....
  19. Converting Audio Files In Vista
    how do you do it? (7)
    Ok, so I have some .wav files that I'd like converted into .mp3. I knew how to do it in XP, but
    I can't find windows audio converter in Vista....does vista even have that, or is it under a new
    name? Also, is it possible to convert video files, like .flv into .avi?....
  20. How To Disable "show Hidden Files And Folders" In Folder Option
    (11)
    How to disable "Show hidden files and folders" in Folder Option As you know, you can hide files
    or folders in Microsoft Windows ( to hide a file or folder , right click on file or folder >select
    properties and then select Hide file) But if you open Folder Option and check "Show hidden files
    and folders " you can see hidden files. to disable "Show hidden files and folders" feature follow
    below steps : 1- Click start > Run > type regedit to run Windows Registry Editor. 2- Go to following
    address: QUOTE HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/Current Versio....
  21. Informix To Sql Server (or How To Open .unl Files)
    how to import .unl files into SQL Server 2000 without Informix softwar (2)
    Does anyone know how to import .unl files into SQLServer 2000? My boss gave me this task to migrate
    an old database into SQLServer. I don't have informix installed since the files were sent to me
    via email. All files have .unl extension and I don't have a clue how to view them. I've
    tried opening them using excel but it can't be read. Does anyone know how to do this? Or at
    least know how to open/view the file using excel or any other program that could be easily migrated
    to sqlserver? Please, I need to migrate the files as soon as possible. Thanks....
  22. Strange .log Files On My Desktop
    (10)
    Since this morning, two new visitors has camped out on my desktop. One is lcapi0.log , & when you
    open it you get: QUOTE 19:50:36.703 F20:F24 WARN :: module=lcapi flavor=fre
    version=1.7.226.0 (RTC Version 4.3.5371.0) 19:50:38.109 F20:F24 INFO :: Initialize(0) 19:50:38.609
    F20:F24 INFO :: MUI not Enabled 19:50:44.625 F20:F24 INFO :: SetDeviceDisabled 0->0 19:50:44.656
    F20:F24 INFO :: SetDeviceDisabled 0->1 19:50:44.656 F20:F24 TRACE :: SetDevice 00000000->00000000
    19:50:44.656 F20:F24 INFO :: SetDeviceDisabled 0->0 19:50:44.656 F20:F24 TRACE :: SetDevic....
  23. Is It Possible To Access The Mysql Remotely?
    (10)
    I like to experiment with a lot of things and I was thinking of making a sort of instant messenger
    in Python, but I want to let people have actual accounts so I need to be able to access the mySQL
    remotely. If that's not possible, are we allowed to run Python scripts on the server?....
  24. Linux Question: Amarok And File Permissions
    please help, i can't get it to work with all music files (4)
    hey, i use to use Linux DC++ to download music from some hubs and i usually download it to
    /home/downloads/ and then i move the files to my collection on another HDD a sata one, on
    sda3/music/ but when i move the files using krushader root mode they become posessed by root and
    amarok can't play them displaying a locker on the file's icon. I tried to " chmod 774 music
    ", where music is my music directory, as root in konsole but no luck. What should i do to make a
    whole directory accessible from amarok as user?....
  25. Which Proxy Sites Can Be Used To Access The Websites?
    when in a firewall enviornment (27)
    My university lately instaled a firewall that prevents us from accessing certain websites I heard
    there are some proxy websites that will enable us to circumvent this firewall can you post some
    links of such websites? /laugh.gif" style="vertical-align:middle" emoid=":lol:" border="0"
    alt="laugh.gif" /> /laugh.gif" style="vertical-align:middle" emoid=":lol:" border="0"
    alt="laugh.gif" /> Edited topic title & description ....
  26. Dreamweaver Permissions Issue
    Access denied when trying to FTP (5)
    Okay, so I was trying to FTP these files over dreamweaver today... and it seemed to be working fine.
    But then, certain files won't let me transfer from my hard drive to the internet, or the other
    way around. It gives me this error message: QUOTE An FTP error occured - cannot put form1.html.
    Access denied. The file may not exist, or there could be a permission problem. Anyway, I know
    that the file does indeed exist. I've opened it on my hard-drive... and it is there. But it
    won't let me upload this one or certain other ones with the FTP. So I went o....
  27. Does Anyone Know How To Make Exe Files
    (17)
    Does anyone know any software for making exe files, I want to make simple programs not propper
    one's. Thanks.....
  28. Do You Have Stairs In Your House?
    I am protected. (71)
    I have 2 sets of small stairs, what do you have? /cool.gif' border='0'
    style='vertical-align:middle' alt='cool.gif' /> ....
  29. Access and VBA Manual...
    (1)
    Any body knows where can i find a free manual about access and VBA?....
  30. Converting Video Files From One Format To Another
    help plz :) (6)
    hey i have learnt this nice way to open mov files in imageready and insert them in sigs,graphics and
    other stuff its really cool,this only works with .mov files and i really need to know if sumone here
    can do that,i need to change a wmv file into a .mov file so i cant add the movie to a sig,i have
    tried many video format conversion programs but they dont accept the mov format,the mov format is a
    quicktime video format,so anyone here know how to change a video file into a quicktime mov video
    format? thnx in advance....

    1. Looking for grabt, access, protected, files, grabt, access, protected, files

Searching Video's for grabt, access, protected, files, grabt, access, protected, files
Similar
Auto-upload
Files With
Filezilla
And
Autohotkey
How Can You
Get Audio
Files From
Itunes
Videos?
Naming Web
Page Files -
Which way
you like-
MyPage.html
or
my-page.html
or
my_page.html
Audio Files?
Jar
Executable
Files
Best Way To
Transfer
Files - I
just bought
a laptop
No Site
Access
1350 Great
Free Logos
(jpg + Psd)
- With both
jpg and
original psd
files to
edit
Can't
Access My
Site An
Cpanel -
already did
some
sugested
things
Can't
Access My
Site....weir
d Issue
Almost
There,
However....
[resolved] -
Cannot
access
webmail yet.
How Do I
Find My
Mysql
Password?
[resolved] -
Cannot
access my
MySQL
Official:
Can't
Access My
Cpanel -
Supports
From Admins
I Cant
Access The
Server!
Remote
Access Mysql
Debug Exe
Files - How
to debug an
exe file.
Ftp Access
Has Stopped
Working All
Of A Sudden
[resolved] -
read
Mysql -
Several
files in one
field.
Converting
Audio Files
In Vista -
how do you
do it?
How To
Disable
"show
Hidden Files
And
Folders"
; In Folder
Option
Informix To
Sql Server
(or How To
Open .unl
Files) - how
to import
.unl files
into SQL
Server 2000
without
Informix
softwar
Strange .log
Files On My
Desktop
Is It
Possible To
Access The
Mysql
Remotely?
Linux
Question:
Amarok And
File
Permissions
- please
help, i
can't
get it to
work with
all music
files
Which Proxy
Sites Can Be
Used To
Access The
Websites? -
when in a
firewall
enviornment
Dreamweaver
Permissions
Issue -
Access
denied when
trying to
FTP
Does Anyone
Know How To
Make Exe
Files
Do You Have
Stairs In
Your House?
- I am
protected.
Access and
VBA
Manual...
Converting
Video Files
From One
Format To
Another -
help plz :)
advertisement



Grabt Access To My Protected Files - grabt access to my protected files



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE