douyan6548 2014-10-10 09:24
浏览 11

PHP - 在另一个域上插入进程

I have this condition, there is 2 site with its own database and domain. in this site, there is a form which the data save on database C on another domain.

is there any way to make the "insert process" be on domain C, because after the insert process the data will send via email to a certain address.

I thought to make function on domain C, and call the function in the site(A or B) to run the insert process. but I dont know how to do it. or is there any way to do it.

sorry for bad english

  • 写回答

3条回答 默认 最新

  • doukun8670 2014-10-10 09:29
    关注

    If you are using both site on same server then just make database connection for other database and execute query using this connection for insertion and other connection to access data from current database. and if you are running application on different different server then use Web Service (REST/SOAP) to communicate between application .

    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度