Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id C62A79FB257 for ; Thu, 9 Nov 2006 11:03:17 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 48416-01 for ; Thu, 9 Nov 2006 15:03:03 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by postgresql.org (Postfix) with ESMTP id 9A41F9F9425 for ; Thu, 9 Nov 2006 11:03:02 -0400 (AST) Received: by nf-out-0910.google.com with SMTP id x4so876212nfb for ; Thu, 09 Nov 2006 07:03:00 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=Lbu6FM0ULY0A17pwLnrZUpv+L2nvqBzEGIV4z3B2QTVFxMeiey7/j4p6XlW47A3/nryK1/xJGeJySNiZFUsLH5NnWdybPx7LIuB/LX+tWD+Wa6sGIB1EnZBuuh76cJvJT5B8ya9T+s7usriGcI5VAhLaaU/uehduqjWH4PaNxeA= Received: by 10.82.129.5 with SMTP id b5mr143387bud.1163084579831; Thu, 09 Nov 2006 07:02:59 -0800 (PST) Received: by 10.82.173.11 with HTTP; Thu, 9 Nov 2006 07:02:59 -0800 (PST) Message-ID: <1d7288990611090702w2b93e727qc2447fc5bef42fe7@mail.gmail.com> Date: Thu, 9 Nov 2006 10:02:59 -0500 From: Brew To: "Servers24 Network" Subject: Re: PgSQL and integration between 2 PHP programs and a Java program Cc: pgsql-php@postgresql.org In-Reply-To: <7b872b430611090218k55fc4cf3kf1fc83f0dccdebf2@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_45043_30832784.1163084579743" References: <7b872b430611090218k55fc4cf3kf1fc83f0dccdebf2@mail.gmail.com> X-Google-Sender-Auth: af720bef4477d559 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/30 X-Sequence-Number: 3647 ------=_Part_45043_30832784.1163084579743 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Amir...... It seems to me you have greater issues than simply combining the three username and password tables!!! What if there are existing users on the three different systems with the same user name? Are they garanteed to be the same person? Maybe so, if they have the same password, but what will you do if they have different passwords? But beyond that, from what you say, you have to convert three different systems from whatever database programs you are using now to postgreSQL. The current databases are doing more than just keeping track of users and passwords, right? Possibly you plan to keep the existing database program and just use postgreSQL to log in? And do you hope your users will log in once and go back and forth between your aplications without logging in again, or not? At any rate, unless the applications are very simple, there is a lot more work to be done than simply joining the three password tables together!!!!! brew On 11/9/06, Servers24 Network wrote: > > Hi, > > I'm a newby so please bare with me : > > I want to integrate 2 PHP scripts and a Java program that all have the > capability of using PgSQL as their databases. > The point is that all the programs have their own DB and table structure. > What I want to do is to have a single DB for all of them and have them > authenticate the users somehow that a registered user in PHP script can > login to Java program too! > suppose that PHP1 scripts have a table called members with 2 fields > "username" and "password". PHP2 has its own table called logins and have 2 > fields "login_name" & "login_password". and my Java program have a table > called profiles with "plogin" and "ppass". suppose that the password field > in all the programs are MD5. Now I want to integrate them. I have read some > PgSQL help books and it seems that there are many options that PgSQL offers > for this, like inheritance, views and join. but I don't know exactly what to > do. Can anyone help please? > -- Strange Brew (brew@theMode.com) Check out my Stock Option website http://www.callpix.com and my Musicians Free Classified http://www.TheMode.com ------=_Part_45043_30832784.1163084579743 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Amir......

It seems to me you have greater issues than simply combining the three username and password tables!!!

What if there are existing users on the three different systems with the same user name?  Are they garanteed to be the same person?  Maybe so, if they have the same password, but what will you do if they have different passwords?

But beyond that, from what you say, you have to convert three different systems from whatever database programs you are using now to postgreSQL.  The current databases are doing more than just keeping track of users and passwords, right?  Possibly you plan to keep the existing database program and just use postgreSQL to log in?

And do you hope your users will log in once and go back and forth between your aplications without logging in again, or not?

At any rate, unless the applications are very simple, there is a lot more work to be done than simply joining the three password tables together!!!!!

brew

On 11/9/06, Servers24 Network <servers24@gmail.com> wrote:
Hi,
 
I'm a newby so please bare with me :
 
I want to integrate 2 PHP scripts and a Java program that all have the capability of using PgSQL as their databases.
The point is that all the programs have their own DB and table structure.
What I want to do is to have a single DB for all of them and have them authenticate the users somehow that a registered user in PHP script can login to Java program too!
suppose that PHP1 scripts have a table called members with 2 fields "username" and "password". PHP2 has its own table called logins and have 2 fields "login_name" & "login_password". and my Java program have a table called profiles with "plogin" and "ppass". suppose that the password field in all the programs are MD5. Now I want to integrate them. I have read some PgSQL help books and it seems that there are many options that PgSQL offers for this, like inheritance, views and join. but I don't know exactly what to do. Can anyone help please?

--

Strange Brew (brew@theMode.com)

Check out my Stock Option website http://www.callpix.com
and my Musicians Free Classified http://www.TheMode.com ------=_Part_45043_30832784.1163084579743--