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?
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.
I suspect it would be much easier to reduce the powerpoint slides to .PNG files, and build a simple PHP script to cycle through the images.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With