I don't get it...

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
Eraser.php
Forum Newbie
Posts: 2
Joined: Mon Feb 16, 2009 1:54 pm

I don't get it...

Post by Eraser.php »

http://www.thps-mods.com/vote1/example.php
This is vote script (just basic one that i haven't made).
Problem:
Why when you choose one answer and click submit, the weird error message appears? And how to fix it? And do i need mysql for this to work? thank you!
User avatar
SpecialK
Forum Commoner
Posts: 96
Joined: Mon Sep 18, 2006 3:49 pm

Re: I don't get it...

Post by SpecialK »

I keep getting the response of "Unable to lock summary file"
This should be a dump from somewhere in your PHP script. From the sound of it, a possible permission issue on trying to write something.

A database isn't required but usually recommended. You could always write the values to a flat file and use that in a similar way to a database.
Eraser.php
Forum Newbie
Posts: 2
Joined: Mon Feb 16, 2009 1:54 pm

Re: I don't get it...

Post by Eraser.php »

So, any ideas how can i permit the data to be written on file or folder?
User avatar
SpecialK
Forum Commoner
Posts: 96
Joined: Mon Sep 18, 2006 3:49 pm

Re: I don't get it...

Post by SpecialK »

If you are controlling the server, you need to make sure your apache has write permissions to a file. Unix permissions can be a blessing and a nightmare at the same time. I usually find it a mess myself but you would have to look up chown and chmod and decide what the proper settings/owners are.

If you arent controlling the server, they usually offer MySQL databases in which you should be using that. It will make a lot easier to manage.
Post Reply