Jump to content

dynamic star rating system help


tbare

Recommended Posts

looking for a good (free) rating system that is dynamic to a file which is specified in the url. I'm open to coming up w/ my own, but really have no idea even where to start... basically, i have a url:

and want to be able to have a rating system for the files.

 

where this gets tricky:

i have NO SQL access, so it has to be done in flat file format. also, if the specified file that holds the ratings (say $file_ratings.dat) is not created, i would like it to create the file for me...

 

any ideas where to start something like this? any help would be much appreciated...

Link to comment
Share on other sites

Create an extra directory, and for every file you create a txt or something where you write the count of all votes and the actual grade. For example:

10|5.5

That means that there voted 10 persons and all in one the file has the grade 5.5 so 5 stars and a half.

Link to comment
Share on other sites

right now i have to manually upload them via scp, or create them manually... the script doesn't do it for me... if i were to create them using the script, my user name is not the owner of the file, thus, i can't edit/change permissions of that file... (at least i haven't figured out how to do that yet..) any help on that would be great! :) thanks

Link to comment
Share on other sites

yeah.. I know about the permissions om the folder, I just haven't had a chance to check how to use chmod using php yet (wife got me workin on re-doing the kitchen.. strip wallpaper, paint, etc... Merry Christmas to me, huh?)... in fact I'm replying to this on my treo... haven't had a chance to get on the computer for more than 2 minutes all day.. thanks for the help..

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.