Extract Data from website

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Extract Data from website

Post by Chris Corbyn »

Hi,

Anyone know of a way to extract ALL files from a specific folder on a website? For example, all the midi files in the root folder of http://www.somesite.org?

Any software suggestions or even a php script would be great thanks :-)
Deemo
Forum Contributor
Posts: 418
Joined: Sun Jan 18, 2004 11:48 am
Location: Washington DC

Post by Deemo »

um....dont think you are allowed to do that....thats what hackers do
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Oh. OK didn't realise it was illegal or anything. Sorry :-/
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Depends on the situation, and purpose, but in most cases what you're asking is illegal.
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

As long as the page links to the files, or you can get the index view of the folder you can use wget.

And it would only be illegal if you were ment to pay for the files etc, if the server is serving the files then your fine.
Post Reply