Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7818717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T06:40:23+00:00 2026-06-02T06:40:23+00:00

I have two php database apps on different servers. I would like to be

  • 0

I have two php database apps on different servers. I would like to be able to transfer the data from a particular record from the first server to the second, with some processing inbetween to account for the differences in database schema. The two servers cannot access each others databases. So the user would click a link on the record and then basically that data would be transferred over to the other server for confirmation. I looked at a redirect with POST, but that doesn’t seem to be possible. Any better ways?

Select record on server 1 -> Process record to correct form -> transfer PHP array to server 2 -> confirmation page on server 2

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T06:40:24+00:00Added an answer on June 2, 2026 at 6:40 am

    you can use curl as i mentioned with the help of this example

    //assuming the variable that holds your record is $row
    $row = array("key1" => "value1", "key2" => "value2");
    $post_fields = "";
    foreach($row as $key=>$field){
        $post_fields .= $key . "=" . $field . "&";
    }
     $Curl_Session = curl_init('http://yourseconddomain.com/yourfile.php');
     curl_setopt ($Curl_Session, CURLOPT_POST, 1);
     curl_setopt ($Curl_Session, CURLOPT_POSTFIELDS, $post_fields);
     curl_setopt ($Curl_Session, CURLOPT_FOLLOWLOCATION, 1);
     curl_exec ($Curl_Session);
     curl_close ($Curl_Session);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two times in PHP and I would like to determine the elapsed
I am just begining php and mysql. I have two queries from my database.
I am trying to import data from a large database. I have two tables
I have two php files, one manages database connection and the other retrieves data
I am working on PHP and database MySQL. I have two tables in SQL
I have two PHP apps which have twho class with the same name. -
I have two .php files which show all contacts in a database, then allows
I have a database that have two tables. The sql query fetching data correctly.
So I have two columns of text in a MySQL database, an example would
I have two tables in a database that looks like this members table1 id

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.