Reply to Re: Incrementing id numberfor sql

Your name:

Reply:


Posted by gosha bine on 09/22/07 08:35

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&type=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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация