php-general | 2004032
Date: 03/30/04
- Next message: Ray Hunter: "Re: [PHP] SNMP PLEASE HELPP!!!!!!!!!!"
- Previous message: Evan Nemerson: "Re: [PHP] Bison and Flex required to install PHP?"
- In reply to: Anthony Ritter: "[PHP] .doc file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected> * society and not sufficient moral courage. (work) davidtgwork <email protected> -- Mary Baker Eddy, "Science and Health" http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
- application/pgp-signature attachment: stored
- Next message: Ray Hunter: "Re: [PHP] SNMP PLEASE HELPP!!!!!!!!!!"
- Previous message: Evan Nemerson: "Re: [PHP] Bison and Flex required to install PHP?"
- In reply to: Anthony Ritter: "[PHP] .doc file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

