Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

save img from site's


hust921's Avatar
Member
0 0

Hey. I'm trying to make a program that save's Imgens from a page. like: somesite/img/1.jpg somesite/img/2.jpg somesite/img/3.jpg and so on…

I don't know what langues i'm gonna program in. Hope some of you can tell me a good lagues for the program, and a litle something about what i'm gonna code.

(sorry for my eng :P)

hust921


ghost's Avatar
0 0

uhh how about doing it in php using "for" and "fget" and "fwrite" etc.. ? u might find this useful for a part of the script if you wrote it in php:

set_time_limit(0);
$f = fopen("http://somesite/whatever.jpg","r");
while (!feof($f)) 
{
$x=fgetc($f);
$file = fopen("whatever.jpg","w");
fwrite($file,$x);
fclose ($file);
}
fclose($f);
?>```

hust921's Avatar
Member
0 0

I thought about php to. but i can't not that muths php yet. so ivl try doing it php then.

Thanks ;)


ghost's Avatar
0 0

mm u can do it in VB too, which is my fav. language, but i prefer php for such tasks..