X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 3CD51D1B8C7 for ; Tue, 19 Aug 2003 00:03:41 -0300 (ADT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 52684-01 for ; Tue, 19 Aug 2003 00:03:30 -0300 (ADT) Received: from mail.taborvision.com (CPE-203-51-144-86.vic.bigpond.net.au [203.51.144.86]) by svr1.postgresql.org (Postfix) with ESMTP id 5D73DD1B9A0 for ; Tue, 19 Aug 2003 00:03:28 -0300 (ADT) Received: from WS01 (c200.local.lan [192.168.0.200]) by mail.taborvision.com (8.11.6/8.11.6) with SMTP id h7J346122924 for ; Tue, 19 Aug 2003 13:04:07 +1000 From: "Luke Woollard" To: Subject: Re: Securing PHP scripts Date: Tue, 19 Aug 2003 13:04:55 +1000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-SBB-mailscanner: no viruses detected X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=3.7 tagged_above=0.0 required=5.0 tests=BAYES_30, IN_REP_TO, MSGID_GOOD_EXCHANGE, ORIGINAL_MESSAGE, QUOTED_EMAIL_TEXT, RCVD_IN_DSBL, RCVD_IN_NJABL, RCVD_IN_OSIRUSOFT_COM X-Spam-Level: *** X-Archive-Number: 200308/72 X-Sequence-Number: 2249 I don't know of any.. Luke Woollard HPAD.com -----Original Message----- From: pgsql-php-owner@postgresql.org [mailto:pgsql-php-owner@postgresql.org]On Behalf Of brew@themode.com Sent: Tuesday, August 19, 2003 12:55 PM To: pgsql-php@postgresql.org Subject: Re: [PHP] Securing PHP scripts Cody..... > Now to connect to the DB via PHP, I have the password hard coded (which is in clear text). > > Here is my question: Is there a way around storing the password in clear text? But no user can ever read that clear text, right? They should only get the PHP script output which normally wouldn't contain the user name and password..... There can be a danger of other users on the machine being able see the clear text password if it's a shared machine and if they are able to read the script, though! Of course that didn't answer your question...... maybe somebody else knows a way around storing it in clear text. BTW, for the best security you should be sure and run PHP with register_globals off in the php.ini config file, read about it at http://us4.php.net/register_globals Sorry if I'm telling you a bunch of stuff you already know anyway....... brew ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)