![]() |
Stumbled upon something here..
Well, I was looking through the PHP documentation, and I came across a neat function called parse_str. I was wondering, would it be wise to use this for storing, and using database details?
PHP Code:
PHP Code:
|
If you're going to grab the string via a HTTP request (such as $_POST, $_GET) then I would say NO! Those would be instantly hackable by anyone who viewed them.
If you're going to store the string in a file and load it I have to ask why not just store them as separate variables? |
Oh, no, of course not. I would never dream of doing something as amateurish as that.
Well, I was just wondering. No harm in curiosity. |
Quote:
|
| All times are GMT. The time now is 02:47 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0