[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 198
  • Last Modified:


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.

2 Solutions
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.
Richard QuadlingSenior Software DeverloperCommented:
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 pecl.zip 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');


Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now