PHP password/security issue

    Date: 12/06/06 (PHP Community)    Keywords: php, web

    I cludged together some php to make a upload and download tool for a client and I have the username and password stored in the php file as such:

    $username = "bob_the_unforgiving";     /* The username. Case sensitive. */
    $password = "foobar12345";       

    I know this is bad but best practices get thrown out the window when you are given two days to make, test and roll out something. Does the community have any recomendations for better ways (or more secure ways) to handle the username and password since if something causes the server to make php stop working somehow possibly the php code would be visible to the interwebs.

    Source: http://community.livejournal.com/php/516862.html

« CSV to XML || credit card payment from... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home