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.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Richard QuadlingSenior Software DeveloperCommented:
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');

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.