Upload all images from a folder on the server to a local

I am new to android.

A folder with n image numbers on the server, I need to upload either a folder or all images with one URL and save them in local memory. I am using WAMP as a server and the service is in php.

+4
source share
1 answer

<? Php

$ num_files = count (glob ($ _ SERVER ['DOCUMENT_ROOT']. '/ images / *'));

echo $ num_files;

? >

use this code if you want to count the number of files in a folder.

rename images to the same prefix, i.e. image0, image1, etc.

nostra13, https://github.com/nostra13/Android-Universal-Image-Loader

.

+2

Source: https://habr.com/ru/post/1543511/


All Articles