怀疑在不同服务器上的照片上传 [英] doubt in photo upload in dfferent server
本文介绍了怀疑在不同服务器上的照片上传的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有两个服务器名称(Server-A& Server-B)。然后Server-B有photoupload.php,我想上传照片使用photoupload.php页面,但是,图像保存目录('Images')在Server-A
i需要源代码将图像保存在另一台服务器中A ......
请帮帮我。
在此先感谢.....!
I had two servers name(Server-A & Server-B). Then Server-B having photoupload.php, i want upload photo using photoupload.php page but, Image saving directory('Images') is in Server-A
i need the source code to save Images in another server-A......
please help me.
Thanks in advance.....!
推荐答案
您好,
您可以查看以下链接。
Hello,
You can have a look at following links.
- 假设您的服务器都是Unix / Linux机箱,那么您可以参考 PHP:SSH2手册 [ ^ ]了解有关PHP中通过SSH进行文件传输的更多信息。
- 您甚至可以使用FTP。请查看 PHP:FTP手册 [ ^ ]了解有关通过FTP通过FTP传输文件的更多信息
- 你甚至可以做使用CURL也一样。要使此选项适用于接收方(Server-A),您必须具有可以接收文件的PHP页面(可能类似于photoupload.php )。请参阅通过POST发送文件cURL和PHP [ ^ ]文章。
- Assuming both your servers are Unix/Linux boxes, then you can refer to PHP:SSH2 Manual[^] to know more about file transfer via SSH in PHP.
- You can even use FTP. Please have a look at PHP: FTP Manual[^] to know more about transferring files via FTP in PHP
- You can even do the same using CURL. For this option to work the receiving side (Server-A) you must have a PHP page which can receive a file (Probably Similar to photoupload.php). Please refer to Send a file via POST with cURL and PHP[^] article.
问候,
Regards,
这篇关于怀疑在不同服务器上的照片上传的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文