RE: [PHP] mcal-problems
| From: | Matthew Loff | Date: | Thu, 18 Oct 2001 01:48:55 +0000 |
| Subject: | RE: [PHP] mcal-problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-71433@lists.php.net to get a copy of this message | ||
Did you create the /var/calendar directory, and make it writable by your
web server account?
Try creating a blank file named mycalendar in that directory first, then
trying to open it...
-----Original Message-----
From: Morten Dreier [mailto:mdreier@pobox.com]
Sent: Wednesday, October 17, 2001 8:05 PM
To: Matthew Loff; php-general@lists.php.net
Subject: RE: [PHP] mcal-problems
At 19:06 -0400 17-10-01, Matthew Loff wrote:
>Did you create the mcal username/password file?
>
>Use the htpasswd utility included with apache to create a file called
>/etc/mpasswd with the username/password combinations you want to use.
>
>(That was the problem I had with getting mcal to work)
No progress - the message is still:
"Warning: Couldn't open stream mycalendar in
/usr/www/htdocs/cal/index.php
on line 2".
Still looks like it thinks that the first parameter is a stream and not
the
calendar name. Strange.
>-----Original Message-----
>From: Morten Dreier [mailto:mdreier@pobox.com]
>Sent: Wednesday, October 17, 2001 6:25 PM
>To: php-general@lists.php.net
>Subject: [PHP] mcal-problems
>
>
>I've installed mcal, but can't get it to work.
>setup: RedHat 7.0, php 4.0.6, apache 1.3.20 and libmcal 0.6.
>
>my testscript:
><?php // -*- c++ -*-
>$test=mcal_open("mycalendar","myuser","mypass");
>?>
>
>and my error:
>Warning: Couldn't open stream mycalendar in
>/usr/www/htdocs/cal/index.php
>on line 2
>
>Obviously, the manual is wrong, since it states that the function
>returns
>a stream, and the first parameter should be the calendar name.
>
>I'm stuck - any clues, anyone?
>
>--
>Morten Dreier
>Institutt for Datateknikk og Informasjonsvitenskap
>http://www.idi.ntnu.no/~mdreier/
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>For additional commands, e-mail: php-general-help@lists.php.net
>To contact the list administrators, e-mail:
php-list-admin@lists.php.net
--
Morten Dreier
http://www.pobox.com/~mdreier/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net