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")
To open a file use this:
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.
I wanted to make a link to a docx file, that would open the document once clicked..and I found all those complicated answers that didn't really work lol and then I just wrote this line <a href="folder/filename.docx">open</a>
and it worked!!! so simple..that I'm scared lol
I use localhost to store the file, so do u think it opens up so easy because it's on my computer anyways? or it'll work once I put it on the server just the same?
Hello i have a script that lets the user to take a photo and then upload it -this was the thread i created https://www.daniweb.com/programming/web-development/threads/508651/how-to-open-camera-and-take-a-photo-scriptBut the photo returns in low res ...