Re: .doc file
| From: | David T-G | Date: | Wed, 31 Mar 2004 04:36:21 +0000 |
| Subject: | Re: .doc file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-181899@lists.php.net to get a copy of this message | ||
Tony, et al --
..and then Anthony Ritter said...
%
% Greets,
% I've been able to open a remote URL, read it and then lop off everything
% except the last line and break it into an array with its' tabs - /t .
Good enough.
%
% The data will then be inserted into a table.
%
% However, the following URL shows reservoir storage and is a .doc file. I am
% unable to run the same script with this URL since it is a .doc file - not a
% .txt file.
Ewwww!
%
% The client has said that this is the only file that their office has and
% does not offer any csv or tsv .txt files.
%
% Is there anyway to acheive formatting this data using the following file?
%
% http://water.usgs.gov/orh/nrwww/odrm/storage2004.doc
Have you tried wvware? It would be a temp file mess, but you could
- get the doc file and store a temp copy
- run wvText on it to convert to a text file
- parse the results
- clean up, of course
to get your last line. The wv* utils do a quite acceptable job of
converting DOC files into other formats, and definitely don't need
a Windows server laying around.
%
% Thank you.
% TR
HTH & HAND
:-D
--
David T-G * There is too much animal courage in
(play) davidtg@justpickone.org * society and not sufficient moral courage.
(work) davidtgwork@justpickone.org -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/ Shpx gur
Pbzzhavpngvbaf Qrprapl Npg!