Home  >  Article  >  Backend Development  >  如果想用php代码操作另一台服务器的文件,怎么实现?

如果想用php代码操作另一台服务器的文件,怎么实现?

WBOY
WBOYOriginal
2016-06-06 20:17:461323browse

例如代码在168.0.0.1,想读写168.0.0.2的文件,如何实现呢?

回复内容:

例如代码在168.0.0.1,想读写168.0.0.2的文件,如何实现呢?

最简单的办法就是配置NFS,将168.0.0.2上的目录挂载到168.0.0.1上,这样就和读取本机上的文件一样读就行了。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn