Forwarding to different domain based on field

Discussion in 'PHP' started by rhytha, Mar 5, 2008.

  1. #1
    Hi readers,

    We have ten sites and those have one end registration. Also ten sites have different

    individual databases to store those related data's. Here the registration values are stored

    in master database. In case of editing, the values are stored in individual database and also

    in master database.

    I think u can get what i am saying based on below:


    Sites


    Site1.com---------databasesite1.com----Master Database.


    Site2.com---------databasesite2.com----Master Database


    site3.com---------databasesite2.com----Master Database

    etc...


    In single word what i am seeking means; i want store values at time in master database and

    in individual database.


    Pleas excuse my bad language!!!!!



    Thank You.
     
    rhytha, Mar 5, 2008 IP
  2. 00johnny

    00johnny Peon

    Messages:
    149
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i'm sure you can use some sort of replication for whatever database you are doing
    other than that you could do something like
    
    // do your regular insert
    mysql_query("INSERT INTO blah values (NULL, value, vales, blah)");
    // then call your master server like this
    $result = =file_get_contents("http://masterserver/someFile.php?action=newUser&var=value.....");
    
    PHP:
    then on your master server just create a file that can update your database based on what the variables are. Now its not the most secure thing in the world but just an idea for ya...
     
    00johnny, Mar 5, 2008 IP