Tanil
Tanil

Reputation: 348

Saving images using php to different urls

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

Upvotes: 0

Views: 72

Answers (1)

Zander Rootman
Zander Rootman

Reputation: 2208

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

Upvotes: 2

Related Questions