Downloading PDF from server

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
chrisranjana.com
New php-forum User
New php-forum User
Posts: 8
Joined: Sat Dec 07, 2002 6:47 pm
Location: Chennai , Tamil Nadu , India
Contact:

Re: Downloading PDF from server

Post by chrisranjana.com » Tue Mar 26, 2013 9:04 pm


seandisanti
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Re: Downloading PDF from server

Post by seandisanti » Thu Mar 28, 2013 10:37 am

Is the url going to contain a list of pdf's?

seandisanti
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Re: Downloading PDF from server

Post by seandisanti » Thu Mar 28, 2013 10:05 pm

probably the easiest would be to use simplehtmldom (http://simplehtmldom.sourceforge.net/) to parse the links from the pages, and then use your favorite string methods to identify which are pdf links, and then download them that way. There are still several more ways you can actually save the files based on the parsed urls of their file locations. I will need to see some of your code to offer any more specific help.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests