Reply to Re: Get only part of the remote file?

Your name:

Reply:


Posted by Phil on 01/02/06 04:40

yellow1912 wrote:
> Is there anyway that I can use curl to retrieve only n bytes/characters
> of a file? I want to get some certain information on a remote site, and
> the data I need stays somewhere at the middle of the page, so I dont
> need to retrieve the whole page, which can save me lots of time.
>
> Thanks a lot ^^
>

Try playing around with CURLOPT_RANGE

eg:
curl_setopt($ch, CURLOPT_RANGE, "0-4096");

---------
Phil

[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

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