0

I have 2 websites (one coded in PHP/Mysql, the other one with some CMS platform I don't know).

My regular website (the PHP one) which functions well, displaying products (around 12,000) and stock infos for them, all from my database.

Then I have this other website (unknown code/CMS) which has some of the products i have on the main PHP site, and stock infos.

What I want is to display on the 2nd website, the stocks infos (how many products in stock) from the 1st PHP website. I assume I can dive a bit into the 2nd website code where the stock info is displayed and do a PHP code tweak. But I need to know which would be a good way to access my database from the 2nd website.

I assume the 2nd website is done in PHP/Mysql.

thanks.

4

1 に答える 1

1

可能な提案

  1. 相互にデータをフェッチする Web サービスを作成します。
  2. 両方の Web サイトがあなたのコントロールであるため、両方のデータベース クエリに直接アクセスできます。

    今、最善の方法

両方のサイトが独立しているように、Web サービスを作成することをお勧めします。

Web サービスを非公開にしたい場合は、何らかの認証を使用します

于 2012-12-18T09:13:12.433 に答える