I am making a crawler that will put content(images) onto my website, i have made a script that crawls and saves the url to a image fine but now i need to upload the images to my server so that i can use them on my website.
I have seen people saying that file_put_contents should be used but you have to specify the image name and ext but it will be dynamic?
you can use file_get_contents() and file_put_contents()