•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 392,075 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,082 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 6604 | Replies: 4
![]() |
•
•
Join Date: Jul 2004
Location: North East Indiana
Posts: 491
Reputation:
Rep Power: 5
Solved Threads: 20
It depends on what you want to do. You can pass the request to the system (only works for specific systems) or you can perhaps find a library that will allow you to do it.
AFAIK, only text files can be opened without special manipulation in most programming languages. (Database access does not count.)
AFAIK, only text files can be opened without special manipulation in most programming languages. (Database access does not count.)
www.uncreativelabs.net
Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
•
•
•
•
It depends on what you want to do. You can pass the request to the system (only works for specific systems) or you can perhaps find a library that will allow you to do it.
AFAIK, only text files can be opened without special manipulation in most programming languages. (Database access does not count.)
you can open an ms word document with its coordinations,How?OK Look:
to make a coordination you must use this:
$opened_file=file("THE FILE PATH")
$old_array=array('[b]','[u]','[i]');
$new_array=array('<b>','<u>','<i>');
$string=str_replace($old_array,$new_array,$opened_file);
To open a file use this:
The great scientist see his web-site:
http://www.elnaggarzr.com/en
I'm sure that will be good for you!
http://www.elnaggarzr.com/en
I'm sure that will be good for you!
•
•
Join Date: Nov 2006
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
Puckdropper is right, none of these code samples will actually work, as MS Word uses a binary file format, and might even refuse to open a file that had been modified with random bbcode/html added on the end. If you try very basic examples it will work, however MS Word creates all sorts of problems in the background using Word 97-2003 files. .docx files will fail entirely because of the zip file format.
What you really need to do is use COM to tell MS Word itself to handle parsing the file. You can create a new COM object with $word = new COM("word.application"); which basically opens up a copy of MS Word on the server and gives you access to it from PHP.
Take a look at this blog post on opening microsoft word files in php and extracting text. Naturally you need a Windows based server in order to do this.
What you really need to do is use COM to tell MS Word itself to handle parsing the file. You can create a new COM object with $word = new COM("word.application"); which basically opens up a copy of MS Word on the server and gives you access to it from PHP.
Take a look at this blog post on opening microsoft word files in php and extracting text. Naturally you need a Windows based server in order to do this.
Last edited by Draicone : Mar 15th, 2008 at 7:18 am. Reason: Update
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
3d apple blog cocoa competition crash daniweb dell development drivers eudora firefox framework games gentoo gpl graphics intel internet java linux microsoft microsystems mozilla news next open open source open-source opengl operating os penelope php programming red hat security software source step sun super system thunderbird ubuntu vista web wesnoth windows xp
- how to link a file in c++ (C++)
- how to work with word document in asp.net (ASP.NET)
- open a new word document (ASP.NET)
- MS word document automaticaly copies a duplicate one every time I open a word documen (Windows NT / 2000 / XP / 2003)
- Picture file on a Word document (Windows NT / 2000 / XP / 2003)
Other Threads in the PHP Forum
- Previous Thread: 4 errors till validation... plz help
- Next Thread: help tochange aspcode to php


Linear Mode