Help combining scripts (php and mysql)

Discussion in 'PHP' started by phpPig, Mar 29, 2009.

  1. #1
    Okay, so here is what I am doing. I have a real tough client, my girlfriend, that I am programming for and this is something that I have never really done before...I am using a custom content management system that I wrote along with osCommerce and WordPress. What I want to do is fix it in mysql where if you login in osCommerce, you are also logged into the WordPress and my CMS. You can view the site http://eboutiquegallery.com. This is the test server that I am using to build the site on I have difficulty configuring php and mySQL to run on my machine locally.

    Can I use a join command or simply query the user table from osCommerce on the other two scripts to make this work????
     
    phpPig, Mar 29, 2009 IP
  2. NatalicWolf

    NatalicWolf Peon

    Messages:
    262
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you could...but its going to involve a bunch of modification. each system would need the user + pass and use the same session data...that'd be the easiest way.
     
    NatalicWolf, Mar 30, 2009 IP
  3. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #3
    Try to find out where these scripts log you in and combine all these into one big function. Replace those functions in the script with the new login function.
     
    EricBruggema, Mar 30, 2009 IP
  4. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #4
    The complicated part here is the SESSION & COOKIES. Theres nothing difficult here on bridging.
    first make sure that there is only one registration for all of the 3 formats, this will ensure the data of the user. if you can disable the wp registration so be it.
    oscommerce has session_id in it that automatically generates upon logging out. this is different with wp.
    anyways, the main thing here is to understand how the session generates on both formats.
    Try using only one login page for those combined.
     
    bartolay13, Mar 30, 2009 IP