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
https://forums.phpfreaks.com/topic/82733-dynamic-star-rating-system-help/
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.

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

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..

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.