0
Guys, I need to download all images from a folder on a server!
I mean, there’s a website www.tarararara.com/images
And there are 50 images! How do I download these images and put them in a folder of my server using the command wget
?
And I need to download all the images from the site, to put in the folder images
localhost!
Any way to create a loop? Or something like?
has access to ftp or is a third party website?
– Daniel Omine
third-party website,,
– Sampaio Leal
For third party site there is nothing to do unless the images have some pattern. The thing there is to use things like wget, file_get_contents(), fopen, Curl, etc....
– Daniel Omine
so they kind of have a pattern for the names, but like I said, you can’t use wget, Vertrigo use on Windows!! and file_get_contents da to put in a folder?
– Sampaio Leal
After all, you want to do it in php, right? You can use any of these php functions that stream and read urls. As for "wget" is a feature for linux but has native equivalent in windows or even may have a wget in Win32/64. Play in google "windows wget".
– Daniel Omine
I just want to make a quick script to download the images in the folder and that’s it, delete it dps, get it? and say I find a wget for windows, what would be the command to get everything from the server?
– Sampaio Leal
even with wget it still works.. you still have to order one by one in a loop.. Tried doing something in php? Post on the question what you tried to do so far
– Daniel Omine
Nothing, because I know that some things are kind of impossible in this Windows!
– Sampaio Leal
It has nothing to do with windows.. Set what you need. Want to do with wget or php? For now it is not clear which tool or environment you want to use.
– Daniel Omine
Let’s go continue this discussion in chat.
– Sampaio Leal
At first it was in PHP, since I use windows! But then I was recommended to install a package to simulate a Linux terminal! Ai I thought now that I can use wget, but still gave error, have to download all images, in the same race! But now I already know how to do with wget! Question solved!
– Sampaio Leal