Video and pic gallery comments on a tube site

General discussions related to php

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 7
Joined: Sun Sep 02, 2018 10:33 am

Sun Sep 02, 2018 10:39 am

Adding comments to videos and pic gallerues on a tube site - best way of getting this done.

a) I create separate files like video_comment.php and pic_gal_comment.php (would this be correct?)? Or I can just create one comment.php file (not really asking about what I can do but about what is the best)?

b) How do I add these comments to a database. Do I create second or n-th database for this, and join it on the video or pic gallery id which would be unique? Also make vid id and pic gal id unique (is this correct thinking?)?

c) As far as I understand I could be caching these single video and pic gallery pages of a site. What is the best solution for this? Or just one cache system for the whole script? How would this work?

I literally dont have an idea about these aspects of this and this would get me closer to where I would need to get.


Post Reply