Re: PHP security

From: Date: Sat, 21 Jul 2001 04:33:41 +0000
Subject: Re: PHP security
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-58990@lists.php.net to get a copy of this message
> I need to store username and password for mysql in a file to be used by PHP. > I am concerned with PHP's security. Can anyone use showsource() to read php > source even if they are on a different server or they are spoofing my ip > address (hacking)? No, of course not. > If I put a file with the secure data in a directory outside the root > directory and include it in a PHP script, could someone use echo or > showsource() to view the file content making the data insecure? Are you on a shared server? ie. Do other people have access to your server? If so, it is somewhat difficult to guarantee security on something like this unless you have your own Apache instance running as your own user id. If you are not on a shared server you don't need to worry about PHP's security. -Rasmus

« previous php.general (#58990) next »