Y
Y
Yapryntsew2015-12-15 21:56:27
PHP
Yapryntsew, 2015-12-15 21:56:27

How to upload images from url?

There is a table in which about 800 lines. How can you implement uploading an image using this link to a specific directory and then replacing this link in the table?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IceJOKER, 2015-12-15
@IceJOKER

$items = fetch_items_from_db(); //берем данные с бд

foreach($items as $item){
  copy();//копируем в нужную директорию
  update_item(); //обновляем в базе данных
}

The rest is how to get data from the database, about the copy () function; and how to update the data in the database THERE IS A LOT OF INFORMATION

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question