I don't know much about PHP, but I was woundering how secure it is for tasks like holding user infromation and passwords, etc.
Can anyone offer shed some light here?
I don't know much about PHP, but I was woundering how secure it is for tasks like holding user infromation and passwords, etc.
Can anyone offer shed some light here?
--Jas
function GreatMinds(){ return "Think Like Jas"; }
PHP is secure... to a point. It's completely invisible to the user when executed as a file on the web. But a determined hacker could probably get it, no matter what. But it's definitely better then JavaScript for password/username validation.
Example:
would be outputted on the web as "test". Even if you hit view source, you'd only see the "test".Code:<?php echo "test"; ?>
- Mike
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design
Bingo. Try typing in Index Of: /etc in googleor they gain access to your server (which your php scripts are hosted on)
- Mike
Wow, that's a lot of sites. They either run their own server, or have crappy webhosts/ISPs, or both!
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design
yes, create a directory with some random files in it, none called index or something that will redirect the browser if you type in http://www.whatever.com/directory/
And if when you type that in it shows a list of all the files in the directory then they could get access to your php scripts.
On my webhost (streamline.net) it says cannot show directory contents.
PHP has a long history of security issues. It's widely considered rather insecure.
PHP flaws aside, though, it's as secure as you write it.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
More secure than javascript. Heck, javascript doesn't even try to be secure.
- Mike
Bookmarks