dqf67993 2016-10-28 11:02
浏览 22

如何跨两个服务器(前端和后端)共享PHP类文件

For security reasons, I would like to install the admin (back-end) of my website on a different server than the front-end server (www).

The front-end server uses PHP objects that will be required in the back-end in order to work properly (obviously).

What should I implement in order to be able to use on the back-end server a class that has been uploaded on the front end server?

As of right now, the only solution I can think of is to upload the class files on both servers but I don't know if it really is a reliable solution.

Thank you.

  • 写回答

1条回答 默认 最新

  • dotj6816 2016-10-28 11:10
    关注

    You can use any type of rsync between the two servers, so that way you will always have a copy of what you want in both servers.

    In our company we do have some replication servers, with the same problem as you. What we use is a Jenkins/Capistrano task, so when we upload the code, after passing tests, and so, we upload the shared code to different locations.

    评论

报告相同问题?

悬赏问题

  • ¥15 基于双目测规则物体尺寸
  • ¥15 wegame打不开英雄联盟
  • ¥15 公司的电脑,win10系统自带远程协助,访问家里个人电脑,提示出现内部错误,各种常规的设置都已经尝试,感觉公司对此功能进行了限制(我们是集团公司)
  • ¥15 救!ENVI5.6深度学习初始化模型报错怎么办?
  • ¥30 eclipse开启服务后,网页无法打开
  • ¥30 雷达辐射源信号参考模型
  • ¥15 html+css+js如何实现这样子的效果?
  • ¥15 STM32单片机自主设计
  • ¥15 如何在node.js中或者java中给wav格式的音频编码成sil格式呢
  • ¥15 不小心不正规的开发公司导致不给我们y码,