Windows sever

42 views
Skip to first unread message

Wheeling

unread,
Mar 11, 2010, 6:20:21 AM3/11/10
to Ajax Availability Calendar
This calendar does not work on a Windows Server is there a solution
for??

cbolson

unread,
Mar 11, 2010, 6:23:05 AM3/11/10
to Ajax Availability Calendar
Hi,
I'm afraid I have no experience or knowledge of windows servers.
That said, just incase I or anybody else can help, exactly what
problem are you having?

Chris

cbolson

unread,
Mar 11, 2010, 6:25:24 AM3/11/10
to Ajax Availability Calendar
You might want to take a look at this thread incase you are having the
same problem:
http://groups.google.com/group/ajax-availability-calendar/browse_thread/thread/27783d932d23c71a?hl=es

Chris

Wheeling

unread,
Mar 11, 2010, 6:31:24 AM3/11/10
to Ajax Availability Calendar
yes
i dont understand this

i.e. replace all:
__FILE__ --> str_replace("\\", "/", __FILE__)
__DIR__ --> str_replace("\\", "/", __DIR__)

On Mar 11, 12:25 pm, cbolson <ch...@cbolson.com> wrote:
> You might want to take a look at this thread incase you are having the

> same problem:http://groups.google.com/group/ajax-availability-calendar/browse_thre...


>
> Chris
>
> On 11 mar, 12:23, cbolson <ch...@cbolson.com> wrote:
>
>
>
> > Hi,
> > I'm afraid I have no experience or knowledge of windows servers.
> > That said, just incase I or anybody else can help, exactly what
> > problem are you having?
>
> > Chris
>
> > On 11 mar, 12:20, Wheeling <bennied...@gmail.com> wrote:
>
> > > This calendar does not work on a Windows Server is there a solution

> > > for??- Hide quoted text -
>
> - Show quoted text -

cbolson

unread,
Mar 11, 2010, 6:39:59 AM3/11/10
to Ajax Availability Calendar
Windows uses backslashes rather than forward slashes so you need to
modify the code where it uses __FILE__ (or __DIR__) so that it
replaces the backslash with a forward one.

eg. In "ac-includes" > "cal.inc.php" you have this line:

define("AC_ROOT", str_replace("ac-includes","",dirname(__FILE__)));

That should probably be changed to this on a window machine:

define("AC_ROOT", str_replace("ac-includes","",dirname(str_replace("\
\", "/",__FILE__))));

Unfortunatley I really don't have a clue about how this all works on
Windows - I really must find out more about it and find away of
testing this sort of thing.

Chris

cbolson

unread,
Mar 11, 2010, 6:47:15 AM3/11/10
to Ajax Availability Calendar
This path is also defined in the comon ajax file -
"ac-includes" > "ajax" > "ajax-common.inc.php"

Chris

Wheeling

unread,
Mar 11, 2010, 7:33:49 AM3/11/10
to Ajax Availability Calendar
oke thanks
the calendar works

the admin wil not work
i replaces in ac-admin/index.php

define("AC_ROOT", str_replace("/ac-admin","/",__DIR__));
to
define("AC_ROOT", str_replace("\\ac-admin", "/",__DIR__));

this error: ac-config.inc.php not found

Bennie

> > > > - Show quoted text -- Hide quoted text -

cbolson

unread,
Mar 11, 2010, 7:59:44 AM3/11/10
to Ajax Availability Calendar
What do you get if you echo __DIR__ in the admin index.php page?

ie.
<?php
echo __DIR__;
...rest of code

Maybe you have more than just "ac-admin" to remove...?

Chris

Wheeling

unread,
Mar 11, 2010, 8:16:57 AM3/11/10
to Ajax Availability Calendar
that works not
__DIR__ac-config.inc.php not found

if i do __File__ C:\domains\..................\calendar\ac-admin
\index.phpac-config.inc.php not found

cbolson

unread,
Mar 11, 2010, 8:24:02 AM3/11/10
to Ajax Availability Calendar
It is not supposed to solve the problem, it is just to show us what
your server has for __DIR__ so that you can adjust the code
accordingly.
I can't work out from your messages where the problem is.

Is it on the web somewhere so that I can take a look or do you just
have it locally in your computer?

Chris

Message has been deleted

cbolson

unread,
Mar 11, 2010, 9:16:50 AM3/11/10
to Ajax Availability Calendar
OK, sorry about that.

I really can't see what is going on.
For some reason the code is now trying to use __DIR__ as a constant.
Any chance of seeing the first few lines of the php code or even you
sending me (via email) your ftp connection so that I can take a closer
look?

Chris

On 11 mar, 14:33, Wheeling <bennied...@gmail.com> wrote:
> i understand the echo __DIR__; code
> i is to show the paht
>
> it is on te webhttp://wheeling.nl/ffynnon/calendar/ac-admin/

Bennie Dingemanse

unread,
Mar 11, 2010, 9:52:45 AM3/11/10
to ajax-availabi...@googlegroups.com
ok i make a FTP account for you

> --
> You received this message because you are subscribed to the Google Groups "Ajax Availability Calendar" group.
> To post to this group, send email to ajax-availabi...@googlegroups.com.
> To unsubscribe from this group, send email to ajax-availability-c...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/ajax-availability-calendar?hl=en.
>

Reply all
Reply to author
Forward
0 new messages