Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jan 2004
    Location
    UK
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Opening MS Office Applications from PHP

    Dear All,

    I have written an application in PHP and now I want it to open a Word Document by clicking on a hyperlink within my PHP application – I’d also like to do the same for opening an Outlook email too.

    When either documents are open I’d like to open it with some text automatically inserted into the document i.e. ‘Hello this is a test document’ or whatever.

    I’ve been browsing round for a few days now but still haven’t found a good starting point.

    My question is: Has anyone done anything like this before and know some good web sites explaining how to do this kind of thing or know of any simple code that can do this …or, can even it be done at all?

    I’d be grateful if anyone out there has some useful advice.

    Cheers,
    Tom

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Do you run your PHP application on a Windows OS?
    De gustibus non est disputandum.

  • #3
    New to the CF scene
    Join Date
    Jan 2004
    Location
    UK
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yes, the server is Windows 2000 Server and the clients are XP and 2000 professional. Sorry about neglecting to mention that!

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Fine, in this case you can use the COM extension:
    http://www.php.net/manual/en/ref.com.php

    Look for example code snippets in the comments at the bottom of that page. Hth.
    De gustibus non est disputandum.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •