tbare Posted December 21, 2007 Share Posted December 21, 2007 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: http://www.domaincom/play_video.php?video=blah 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... Quote Link to comment https://forums.phpfreaks.com/topic/82733-dynamic-star-rating-system-help/ Share on other sites More sharing options...
Lumio Posted December 21, 2007 Share Posted December 21, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/82733-dynamic-star-rating-system-help/#findComment-420822 Share on other sites More sharing options...
tbare Posted December 22, 2007 Author Share Posted December 22, 2007 yeah... I got that part figured out... but if I wanted the file to be created dynamically, is there a good way to do that? Quote Link to comment https://forums.phpfreaks.com/topic/82733-dynamic-star-rating-system-help/#findComment-420980 Share on other sites More sharing options...
DyslexicDog Posted December 22, 2007 Share Posted December 22, 2007 Can you upload files using your script or do you add them manually over ftp? Quote Link to comment https://forums.phpfreaks.com/topic/82733-dynamic-star-rating-system-help/#findComment-420985 Share on other sites More sharing options...
tbare Posted December 22, 2007 Author Share Posted December 22, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/82733-dynamic-star-rating-system-help/#findComment-420987 Share on other sites More sharing options...
Lumio Posted December 22, 2007 Share Posted December 22, 2007 try to use chmod or something. And also put the Permission of that folder to 777. Quote Link to comment https://forums.phpfreaks.com/topic/82733-dynamic-star-rating-system-help/#findComment-421146 Share on other sites More sharing options...
tbare Posted December 22, 2007 Author Share Posted December 22, 2007 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.. Quote Link to comment https://forums.phpfreaks.com/topic/82733-dynamic-star-rating-system-help/#findComment-421390 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.