powerpointviewer

Embed Powerpoint viewer on a web page (PHP)


I am building a PHP application where the user upload Powerpoint files. I want the other users to view it online instead of downloading. (Using a third party apps like google docs might be a little cumbersome for the users) Is it possible to write a powerpoint viewer code in PHP?


Solution

  • You could automate the process of using google docs with php.

    Google provides a ppt viewer that can be embed into webpages using the following code

    <iframe src="http://docs.google.com/gview?url=http://www.domainname.come/presentation.ppt&embedded=true" style="width:550px; height:450px;" frameborder="0"></iframe>
    

    Now im assuming php handles the uploads your users make, thus it would be easy to find the url to the specific ppt file. You could store this url either in a variable or a database, fetch it when needed and place it in the code above.

    I hope I have been able to explain the logic im trying to apply, do let me know if you need more specifications.