Click here to Skip to main content
15,881,600 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I need to create a simple HTML page.

In this page, user can view "PowerPoint" file.

User just have to pass it a pptx file path and it should auto pic and display just as "slideshare.com".

Please guide me how I do this?

Thanks
Posted
Updated 30-Aug-12 19:21pm
v5

FIRST ANSWER
Use google.

I've searched for: show powerpoint in html

and the results have been interesting:

This first one goes a little bit further: it works as powerpoint but it is only HTML and XHTML: http://www.w3.org/Talks/Tools/Slidy2/#(1)[^]


This is from the San Diego State university: http://www-rohan.sdsu.edu/~bats/PDF/Students/Ppt/Ppt_HTML_97_98.pdf[^]

Check this one for thoughts on what you want to do: http://www.boutell.com/newfaq/creating/powerpointtoweb.html[^]

And you can also check this from Stack Overflow (grrrr) which shows you a way of taking advantage of google docs to make that: http://stackoverflow.com/questions/39855/embed-a-powerpoint-presentation-into-html[^]

SECOND ANSWER
Use Google.

I've searched for that and: http://phppowerpoint.codeplex.com/[^] shows examples on how to use it.

Of course you've tagged your question as HTML and Powerpoint and this is not including PHP in any way.

THIRD ANSWER
PHP is a server side language. You don't need a server to work with HTML as HTML is processed directly from your browser. Then, in order to use PHP you need a PHP server.

See:
EasyPHP[^].
XAMPP[^].

Both softwares install the basic server functionality to work with most of the MySQL, PHP, ... web pages you would like to implement.

Typically I end up by using a good text editor (Notepad++, Ultraedit, Scite...) to edit the code and EasyPHP to be able to use PHP. Then there are tons of firefox extensions to check the behavior of the pages.

FOURTH ANSWER
Quote:
The following requirements should be met prior to using PHPPowerPoint:
* PHP version 5.2 or higher
* PHP extension php_zip enabled
* PHP extension php_xml enabled
Well, in EasyPHP you can activate them by editing the configuration of PHP. Right click on the E icon int the notification tray and select Configuration ==> PHP. I don't know how to do it with the other ones. Anyway, it will be extremely easy for you to find in google "activate php_zip" + WAMP or EASYPHP or XAMPP.
The PHP library you want to use will work for sure, you will probably have to activate some extensions.
Ensure that those extensions will be available in your production server. It would be an issue if you install them in your windows computer, you make all the programming and then you install everything in your production server and nothing works there. Speak with the guys at your server company.

All in all, install the rpogramming environment you prefer (EasyPHP, XAMPP, WAMP...) and then update it. After that see in their help pages how to activate their extensions and start working with it.

as a side note see:
http://www.php.net/[^]
http://www.w3schools.com/php/default.asp[^]

Those are good PHP resources when it's time to learn how to work with it.

FIFTH ANSWER
Take a look here: http://blog.maartenballiauw.be/post/2009/04/27/PHPPowerPoint-010-(CTP1)-released!.aspx[^]

See that: http://blog.maartenballiauw.be/post/2009/04/27/PHPPowerPoint-010-(CTP1)-released!.aspx[^]

And follow the advice: download the codeplex PHPPowerpoint and use the samples that are there. It seems that you should see test samples that will show you how to use it.

SIXT ANSWER
Given the fact you are working with PHP, and that with PHP echo('') is used to show things in the web page, it is quite normal...
It seems you are creating a slideshow and showing (via echo calls) the status of this creation to the user.
I'm sorry, as I told you I've never worked with that library. Try to find another sample in order to advance...
I can see that the code you pasted is not the complete code: I can't see the name of the file you are working with, neither the first word is correct (it lacks the $objPHPPowerPoint->) and I can see that it finishes at $currentslide = which that seems to go nowhere...

I would say: read the samples and the information that will be there, paste the entire sample if you need help.

I'm not the right one to give deep level help on that (my post has been only giving you pointers and advice on how I would proceed).

So if I were you I would:

1. read the samples completely.
2. try to understand how they work.
3. run them and see if they are more or less what you are interested in.
4. when you have a specfic question come back to the Q&A section of CP and post a new question. (remember to follow the guidelines).

Good luck.
 
Share this answer
 
v6
Comments
Misbah1 29-Aug-12 2:29am    
Do you know how to use PHPPowerPoint library in html code?
Misbah1 29-Aug-12 3:32am    
Can i use this library with dreamviewer ?
Joan M 29-Aug-12 3:53am    
As far as I know Dreamweaver is only a mere editing software that allows you to see in a WYSIWYG way what you are doing. PHP run at the server so I guess it should have not any interaction with that.
Misbah1 29-Aug-12 4:33am    
Do you know on which software I can use this library?
Joan M 29-Aug-12 4:39am    
Updated the answer see references to EasyPHP and XAMPP.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900