Posted on 2004-11-19
Last Modified: 2013-12-13
I am having a problem with the following function:

$stream=mcal_open(neumail01/mail_is/j.sloan.nsf,username, password);
I receive the following error:
Fatal error: Call to undefined function mcal_open() in c:\Inetpub\wwwroot\calendar.php on line 20

Do I need to download a separate library for this?  I am using PHP 5.2 with IIS 4.0 on Windows XP Professional.

I am also unsure of the formatting of the call to the calendar.  I have tried the following, but I receive formatting errors.

$stream=mcal_open((neumail01/ICAP)<mail_is/j.sloan.nsf>,username, password);

I receive formatting errors with the symbols when I call it like this.

Question by:jbsloan
    LVL 48

    Accepted Solution

    You need to enable the mcal -extension

    uncomment the

    in your php.ini and restart the webserver Then the extension should be available. If  you installed PHP via the exe you will need to download the zip and extract the dll from there.
    LVL 40

    Assisted Solution

    See hernst42 comments with regards to installing the mcal extension except if you are using PHP5.

    From the PHP Manual ...

    Note: This extension has been removed as of PHP 5 and moved to the PECL repository.

    So, download the file and copy the dll from this archive.

    The call should look like ...

    int mcal_open ( string calendar, string username, string password [, int options])


    $stream = mcal_open('neumail01/mail_is/j.sloan', 'username', 'password');


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Suggested Solutions

    Title # Comments Views Activity
    Error handling in PHP 5 38
    Don't send email 6 41
    PHP Word Writer 1 28
    create csv file from recordset  in php 4 20
    This is a general how to create your own custom plugin system for your PHP application that you designed (or wish to extend a third party program to have plugin functionality that doesn't have it yet).  This is not how to make plugins for existing s…
    This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
    The viewer will learn how to dynamically set the form action using jQuery.
    The viewer will learn how to count occurrences of each item in an array.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now