PDA

View Full Version : php password protection issue



vitotol
May 17th, 2009, 10:38 PM
hello guys, i have a problem and i need some help...

i have a php script that creates an image which shows some info taken from a database.
to display the image to the browser through the url, the script must have read permissions so the password can be read.

how can i protect the password, i tried to get it from an included php file but it must be readable too. what should i do:confused:???

s.fox
May 17th, 2009, 10:58 PM
Hi,

Any password scripts that I include are never web facing. Set permissions like how you need and then

You could just go something like



<?php
include ("../../../../password.php");
?>


Hope this gives you some ideas

-Ash R

vitotol
May 17th, 2009, 11:14 PM
thanx for your reply but i need to protect the password from other users too. this script is for a server.