Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Is php really hidden?
Old 12-15-2005, 08:41 PM Is php really hidden?
Novice Talker

Posts: 10
Trades: 0
I have a simple question: are php scripts in pages really hidden and unobtainable? If I have information in a php script that I don't want anyone to see, is there any way they can get it? Basically, the security system for my site revolves around user information stored in a comment in a php script. If there was a way that someone could get ahold of the script, my system would be crippled.

Is there anyway that someone viewing my site externally could get the file and view the scripts?
benhorton2 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-16-2005, 01:26 AM
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Your php code will generally be hidden from people viewing your pages as it is parsed by the php engine on your server before it is handed off to the browser. If someone views the source of your page for example they won't see your php code.

Nothing is completely unobtainable though. If someone really wants to get and see your file and is skilled enough they can find a way. There really isn't anything that's 100% secure.

I'm not sure why you would store critical user information in a comment though. Since it's a comment it's not needed at all or used in any by the script so I'm not sure how your security system can revolve around it. If it's there just so you or someone else can remember it there are probably better place to keep the information.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 12-16-2005, 10:30 AM
reli4nt's Avatar
Extreme Talker

Posts: 168
Location: New York
Trades: 0
Well he could be using fwrite and so on, but basically all security measures are detterants and the goal is not to make something unnattainable (which is impossible) but to confound someones attempts so that the effort required far outweighed the rewards.

One way to understand security is to keep this in mind;
you can see it, therefore it can be seen,
if you can do it, then at least in some way it can be done.

Inn spite of all this though php code is very secure when on a php sever. Just make sure to always use and extension that will be parsed by the php server. For example .php, or .inc.php versus .inc.
__________________

Please login or register to view this content. Registration is FREE

Designing the world we live in.
Defining the terms we live by.
reli4nt is offline
Reply With Quote
View Public Profile Visit reli4nt's homepage!
 
Old 12-19-2005, 07:28 PM
Novice Talker

Posts: 10
Trades: 0
Thanks for all your help, that answered my question.

And to answer yours, I do use fread and parse the info that is stored in a comment. We don't have anything too secure, and our users aren't too gifted with computers, so I really don't think I have anything to worry about.
benhorton2 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Is php really hidden?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20742 seconds with 12 queries