I’m using the wget command from within php to download a css stylesheet and its dependencies.
exec ("wget -p --convert-links -nH -nd --no-check-certificate http://infidelphia.com/style.css -P /home/devuser/public_html/Tset/");
There is a stylesheet and a couple of images. When I execute it in the command line:
wget -p --convert-links -nH -nd --no-check-certificate http://infidelphia.com/style.css -P /home/devuser/public_html/Tset/
I see there is a 404 for one of the resources in between but everything else after it downloads fine.
But when I execute this via PHP everything after this resource is skipped. Is there any way to make sure that failed downloads/errors are skipped over and rest of the assets can be downloaded?
Sometimes, i use php curl to download files, for example:
Greatings!