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

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

WBOY
Release: 2016-06-06 20:17:46
Original
1381 people have browsed it

例如代码在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上,这样就和读取本机上的文件一样读就行了。

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template