I'm sorry? The script is intended to connect to the copy of Word running on the server, open that, and do its stuff there on the server. Not the copy of Word running on the client (which stands a good chance of not existing, and even if it did, being able to open it from the server would represent a hideously large security hole).
If you want the client to open a Word file, just send it to them ([man]fpassthru[/man], probably), under a Content-Type: header of application/msword.
Let the client deal with it in its own way.