PHP File Reading

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
drewdan
Forum Newbie
Posts: 3
Joined: Sat Aug 07, 2010 2:05 pm

PHP File Reading

Post 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
User avatar
PHPHorizons
Forum Contributor
Posts: 175
Joined: Mon Sep 14, 2009 11:38 pm

Re: PHP File Reading

Post 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
drewdan
Forum Newbie
Posts: 3
Joined: Sat Aug 07, 2010 2:05 pm

Re: PHP File Reading

Post 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
User avatar
PHPHorizons
Forum Contributor
Posts: 175
Joined: Mon Sep 14, 2009 11:38 pm

Re: PHP File Reading

Post 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.
drewdan
Forum Newbie
Posts: 3
Joined: Sat Aug 07, 2010 2:05 pm

Re: PHP File Reading

Post by drewdan »

Thankyou for your help!

Andy
Post Reply