RE: [PHP-WIN] how to download files by http

From: Date: Mon, 28 Jan 2002 10:24:49 +0000
Subject: RE: [PHP-WIN] how to download files by http
Groups: php.windows 
Request: Send a blank email to php-windows+get-11669@lists.php.net to get a copy of this message
> I need help > I want to to get file list o n remote http server for > example: http://heban.unx.eragsm.pl:6666/baobab/static/tmp/ > If I open this adress in browser i got list of files in this > folder i want to get the list and download this files by > application wrote in PHP is it possible > Veeeery thanks for help The webserver run on that server is the one responsible for listing the content, it's not part of the HTTP protocol. Apache would do this on a default installation for example. You can simply $fp = fopen("http://heban.unx.eragsm.pl:6666/baobab/static/tmp/","r"); $data=""; for(!feof($fp)) { $data.=fgets($fp); } fclose($fp); and $data would contain the html code, then up to you to parse out the information Good luck! /Martin

« previous php.windows (#11669) next »