Page 1 of 1

PHP File Reading

Posted: Sat Aug 07, 2010 2:08 pm
by drewdan
Heya Guys,

Quick question for you.

I am making a PHP website that will allow a user to upload PUB files and PDF files to the website then the website should display these files on the site.

Is this possible? I would imagine the file would have to be converted first, but I cannot see how to convert a file from one format into HTML using PHP?

Anyone ever done anything like this? Would appreciate any help or advice.

Thanks guys

Andy

Re: PHP File Reading

Posted: Sat Aug 07, 2010 3:14 pm
by PHPHorizons
Hello drewdan,

Most of the time, folks just put a link to the pdf file and let the browser's adobe plugin handle the file. There is a php module that can be used to manipulate pdf files and you probably could use that to extract the text from the pdf. But the best way to go is definitely letting the browser handle it.

Cheers

Re: PHP File Reading

Posted: Sat Aug 07, 2010 3:18 pm
by drewdan
Thanks for your help.
Presumably there is no function that would allow a user to upload a Publisher file and the script convert it to HTML and put the HTML into a database is there?

Thanks again for your help! Found the PDF functions in PHP so can start using them now!

Cheers

Re: PHP File Reading

Posted: Sat Aug 07, 2010 4:33 pm
by PHPHorizons
You're welcome ;)

I don't know about the publisher file. A fairly quick google search yielded no results for me either.

Sorry, and good luck with it.

Re: PHP File Reading

Posted: Sat Aug 07, 2010 4:41 pm
by drewdan
Thankyou for your help!

Andy