[PHP] Downloading a part of a file

2004-09-07 Thread Octavian Rasnita
Hi all, Please tell me how can I fetch an html document from a web page, let's say starting from the character 1000, and get the text until the caracter 5000. In fact, I want to use the GET or POST method, and to also send to the server the HTTP header: Range: bytes=1000-5000 Thanks. Teddy

Re: [PHP] Downloading a part of a file

2004-09-07 Thread zareef ahmed
Hi Rasnita, What you excatly want to do? if you just want to get a remote file. You can use normal file functions like fopen, fget, fgets, file_get_contents etc. with a url. http://in.php.net/manual/en/ref.filesystem.php and if you want to send headers to a server using curl can be a