+ Antworten
Ergebnis 1 bis 1 von 1

Thema: PHP und COM

  1. #1
    TP-Veteran Flow09 ist auf einem guten Weg Avatar von Flow09
    Registriert seit
    Jun 2001
    Ort
    Wien
    Beiträge
    1.436

    PHP und COM

    Hey,
    ich versuch gerade per PHP und COM auf Outlook zu kommen und dort in den Kalendar einen Eintrag zu speichern! Derzeit noch bei mir lokal, später soll das dann beim Exchannge-Server arbeiten!
    Hier mal der Code dazu:
    PHP-Code:
    <?php

    define 
    ("SUBJECT_MATTER""Urlaub");
    define ("START_TIME""12/4/2003 1:00:00AM");
    define ("END_TIME""1/12/2004 1:00:00AM");
    define ("BODY_TEXT""Ulaub");

    $objApp = new COM("Outlook.Application");
    $newItem $objApp->CreateItem(olAppointmentItem);

    $newItem->Subject SUBJECT_MATTER;
    $newItem->Start START_TIME;
    $newItem->End END_TIME;
    $newItem->BusyStatus olOutOfOffice;
    $newItem->Body BODY_TEXT;
    $newItem->Save();
    $newItem->Display();

    ?>
    Leider bekomm ich die Fehlermeldung:

    Warning: (null)(): Unable to obtain IDispatch interface for CLSID {0006F03A-0000-0000-C000-000000000046}: Starten des Servers fehlgeschlagen in c:\programme\apache group\apache\htdocs\com\commail.php on line 8

    Fatal error: Maximum execution time of 30 seconds exceeded in c:\programme\apache group\apache\htdocs\com\commail.php on line 8
    Ich werd da nicht schlau draus!

    lg
    Flow
    Geändert von Flow09 (01.12.2003 um 14:13 Uhr)
    Lesser known Programming Languages #13: SLOBOL
    ... Although many compilers allow you to take a coffee break while they compile, SLOBOL compilers allow you to travel to Bolivia to pick the coffee. Forty-three programmers are known to have died of boredom sitting at their terminals while waiting for a SLOBOL program to compile. Weary SLOBOL programmers often turn to a related (but infinitely faster) language, COCAINE.

+ Antworten

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

     

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51