Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New Coder
    Join Date
    Aug 2002
    Location
    Portland, Oregon
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts

    combining php scripts

    I'm still pretty new to php....trying to figure it out though.

    I have several different PHP/MySql scripts downloaded free or paid for off the net. I want to make them all come together into one service, so people don't have to sign up over and over all the time. Most of them have a config.php file where I have to manually change my database info, and then the scripts call that to function.

    Now here's my question:
    Could I use the same database for each, and just change the individual table information to match through all of them?
    Never underestimate the power of stupid people in large groups...

    Bumper sticker: "Born ok the first time"

  • #2
    Regular Coder
    Join Date
    Sep 2002
    Location
    British Columbia
    Posts
    235
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You have several programs which require a user to login, but you want the user to only have to login once?

    This can be a tricky thing to do. What programs do you have?

  • #3
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,273
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Of course you can use the same database. It might take a bit of work coming up with the necessary table(s) that deal with login/access to work throughout all of the scripts.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #4
    New Coder
    Join Date
    Aug 2002
    Location
    Portland, Oregon
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts
    My main program is Postnuke, I use a Cpanel email user signup script from http://warwithboredom.com/scripts.htm so I can offer free email accounts, squirrelmail for the email client, and phpmanager for my webhosting service.
    Never underestimate the power of stupid people in large groups...

    Bumper sticker: "Born ok the first time"

  • #5
    New Coder
    Join Date
    Aug 2002
    Location
    Portland, Oregon
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts
    How about this....could I modify the signup script in postnuke to create accounts in my other scripts as well?
    Never underestimate the power of stupid people in large groups...

    Bumper sticker: "Born ok the first time"

  • #6
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,273
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Originally posted by magnus127
    How about this....could I modify the signup script in postnuke to create accounts in my other scripts as well?
    If you modify one of the account/login/access tables to be able to work with all of the other scripts then you wouldn't need to have one script create accounts for all the other scripts.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #7
    New Coder
    Join Date
    Aug 2002
    Location
    Portland, Oregon
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok, so how do I tell a signup script to post to 3 or 4 different programs?

    I really am new at php....if this were html, I'd say something like <form method=POST action=url>. How would you do that in php so it posts to all the scripts?
    Never underestimate the power of stupid people in large groups...

    Bumper sticker: "Born ok the first time"

  • #8
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,273
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Originally posted by magnus127
    Ok, so how do I tell a signup script to post to 3 or 4 different programs?

    I really am new at php....if this were html, I'd say something like <form method=POST action=url>. How would you do that in php so it posts to all the scripts?
    I think you are not quite understanding what I am saying.

    Ok each of those scripts are probably using a database table that stores users information such as username and passwords and other info for their accounts for that particular script. Since each script uses it's own table what you will want to do is design another table that stores usernames and passwords and other info that will accomodate any of the scripts. Then change each script to point to that new table.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #9
    New Coder
    Join Date
    Aug 2002
    Location
    Portland, Oregon
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ahh...the light just turned on. That shouldn't be too hard then, it's just a matter of figuring out what each script needs and pointing it to the new table.

    Most of the time when I get a new script off sourceforge or hotscripts, it comes with a 'database.sql' file that's queried by MySql to populate my database. So, (in theory) I could use those to populate a single database with all the user info I'd need for each script?
    Never underestimate the power of stupid people in large groups...

    Bumper sticker: "Born ok the first time"


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •