Word Doc

This is a discussion on Word Doc within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hi I am new to php and have a small project that I would like to implement as my first ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-08-2008
Jes
 
Posts: n/a
Default Word Doc

Hi
I am new to php and have a small project that I would like to
implement as my first try.
This involves a 'Home Page' with links to various Word Documents.

Is it possible to read the contents of the Word Document and place it
in a <textarea> or something similar instead of having the user
opening the Word every time ?

Thanks
Jes
Reply With Quote
  #2 (permalink)  
Old 05-08-2008
McKirahan
 
Posts: n/a
Default Re: Word Doc

"Jes" <jesmondspiteri@gmail.com> wrote in message
news:b0e9cd59-6f0c-42d1-959e-32a1bcbf3b75@k37g2000hsf.googlegroups.com...
> Hi
> I am new to php and have a small project that I would like to
> implement as my first try.
> This involves a 'Home Page' with links to various Word Documents.
>
> Is it possible to read the contents of the Word Document and place it
> in a <textarea> or something similar instead of having the user
> opening the Word every time ?


First is MS-Word installed on the server?

Why try to do it on the fly for each user?

Why not just save each as a PDF file and/or
as a text file and give your users the option
to view/download in their desired format.


Reply With Quote
  #3 (permalink)  
Old 05-09-2008
Narendra
 
Posts: n/a
Default Re: Word Doc

On May 8, 4:51*pm, "McKirahan" <N...@McKirahan.com> wrote:
> "Jes" <jesmondspit...@gmail.com> wrote in message
>
> news:b0e9cd59-6f0c-42d1-959e-32a1bcbf3b75@k37g2000hsf.googlegroups.com...
>
> > Hi
> > I am new to php and have a small project that I would like to
> > implement as my first try.
> > This involves a 'Home Page' with links to various Word Documents.

>
> > Is it possible to read the contents of the Word Document and place it
> > in a <textarea> or something similar instead of having the user
> > opening the Word every time ?

>
> First is MS-Word installed on the server?
>
> Why try to do it on the fly for each user?
>
> Why not just save each as a PDF file and/or
> as a text file and give your users the option
> to view/download in their desired format.




You can read the data of a .doc file and store it in a file and use
accordingly..

Check this function and use it enjoy...

function readmyfile($path){
$text='';
$fp = @fopen($path,"r+");
while (!@feof($fp)){
$buffer = @fgets($fp, 4096);
$text.= $buffer;
}
@fclose($fp);
return $text;
}
Reply With Quote
  #4 (permalink)  
Old 05-12-2008
C.
 
Posts: n/a
Default Re: Word Doc

On May 8, 11:52 am, Jes <jesmondspit...@gmail.com> wrote:
> Hi
> I am new to php and have a small project that I would like to
> implement as my first try.
> This involves a 'Home Page' with links to various Word Documents.
>
> Is it possible to read the contents of the Word Document and place it
> in a <textarea> or something similar instead of having the user
> opening the Word every time ?
>
> Thanks
> Jes


You'll need to convert the Word document into something else.

wv might be what you need.

C.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:25 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0