dongren1986 2014-05-28 10:19
浏览 9

使用php将图像保存到不同的URL

In php my goal is to have a system whereby I want to save an instance of an image in different locations over different URLS.

Example:

Image 1 ; Image 2 ; Image 3

.

www.example.com ; www.example-image.com ; www.elpmaxe.com

Specific image should be saved across all the URLS.

I want to achieve this all through a single log in page where the admin can upload images and add the information they desire, perhaps different information for each site.

Question:

How would I achieve a central place whereby I can upload images to several URLS? If I had a site such as www.admin.com and that site can do all the upload functionality of the several sites? Tips and pointers helpful at this stage!

Tools:

PHP & mySQL

  • 写回答

1条回答 默认 最新

  • duanchi0897 2014-05-28 10:33
    关注

    I think it's needles to say, you would need access (probably FTP access) to each of the servers.

    What you want to look at is CURL

    And I would suggest getting familiar with sending files over CURL: Send file via cURL from form POST in PHP

    I'm pretty sure you're familiar with how you're going to lay out your application logic.

    Please let me know if you need more details or have any other questions.

    EDIT
    You could also look into PHP FTP

    评论

报告相同问题?

悬赏问题

  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥16 mybatis的代理对象无法通过@Autowired装填
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示
  • ¥15 求三国群英传pl国战时间的修改方法
  • ¥15 matlab代码代写,需写出详细代码,代价私
  • ¥15 ROS系统搭建请教(跨境电商用途)