Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > General Support

General Support Questions about using the Easy PHP Calendar. (Not installation or customizations)

Closed Thread
 
Thread Tools Search this Thread Display Modes

MySQL selected but still using flat-file?
Old 06-30-2005, 11:19 AM   #1
straw-man
Calendar User
 
straw-man is offline
Join Date: Apr 2005
Posts: 9
Default MySQL selected but still using flat-file?

In my preferences I have my calendar configured to use a MySQL database. The connection is working and the calendar displays the one event that is listed in my MySQL database.

When I try to add an event, I get a permission denied error trying to open the esdates.txt file in the /database directory. If I change the permissions on that file and the database directory it 'works' and allows it to add items to the calendar, but they are added to the flat-file db not the MySQL db (so they are not displayed on the calendar).

Has anyone had this problem? I originally had it with (I believe) version 6.1.5. I have since upgraded the the latest 6.2.4 IonCube version and I'm still getting the error.

In my setup manager, I have verified that flat file is turned off and MySQL is turned on. I've tried to toggle them as well...turn db off and flat file on then reverse it, with the same result.

Any ideas?

Thanks!

Straw-man
 

Old 06-30-2005, 01:21 PM   #2
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

Have you tried having both enabled and then choosing which database to edit when logging on to the Event Manager?
 

Old 06-30-2005, 01:38 PM   #3
straw-man
Calendar User
 
straw-man is offline
Join Date: Apr 2005
Posts: 9
Default

if both are selected, it still uses flat-file. With both selected, it does show the records both from the db and the flat-file. When new records are saved, they are saved to file.

I don't see a place when saving an event to save it to the database instead.
 

duh - possible solution?
Old 06-30-2005, 01:40 PM   #4
straw-man
Calendar User
 
straw-man is offline
Join Date: Apr 2005
Posts: 9
Default duh - possible solution?

One thing that JUST hit me....

you said 'when you log in' select the mode....

I am passing the username/password variables via the URL to log in automatically from my administration site. I'm assuming that is my problem...is there a way I can be sure it passes to the MySQL database from the URL path?
 

Old 06-30-2005, 01:53 PM   #5
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

Yes!! That will make a difference... According to this post from Brian you have to add to that command line
HTML Code:
&dataMode=s
's' being for MySQL mode, and 'f' for the Flat-file.

I've tried it just now, and I'm not 100% sure it works. I'll do more testing.
 

Old 06-30-2005, 02:12 PM   #6
straw-man
Calendar User
 
straw-man is offline
Join Date: Apr 2005
Posts: 9
Default

doh!

I just looked at my link and I had dataMode=f in there....problem solved! Thanks a bunch.
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert from Flat File to mySQL blank214 General Support 1 03-11-2005 09:01 AM
Event Creation - Flat File mcfatema@iowatelecom.net General Support 4 11-01-2004 10:49 PM
flat file newbie question mmcneal76 General Support 5 08-03-2004 01:17 PM
MySQL Or Flat File Databases? Brian General Support 4 07-12-2004 08:11 PM
What are the benefits of using mySQL vs Flat File? simpleman General Support 7 07-09-2004 08:41 PM



All times are GMT -4. The time now is 08:25 AM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |