Incrementing id numberfor sql
am 21.09.2007 15:16:35 von unknownPost removed (X-No-Archive: yes)
Post removed (X-No-Archive: yes)
Andrew wrote:
> Could I get your help with this problem? It has got me stumped.
>
> I want to display and save any images from a like this one.
> http://www.somesite/index.php?s=4e0e5ea42fec1a1c3ed=attach&t ype=post&id=63880
> The challenge is that the last number increments by one. I could just
> edit the browsers address bar for each image but I was looking for a
> php program.
>
> How can it be done?
Something like
for($i = 63880; $i < 77777; $i++)
{
$img = file_get_contents("http://www.somesite...id=$i");
// do whatever you want with $img
}
--
gosha bine
extended php parser ~ http://code.google.com/p/pihipi
blok ~ http://www.tagarga.com/blok