Jump to content


Photo

Little Advice


  • Please log in to reply
2 replies to this topic

#1 thechris

thechris
  • Members
  • PipPip
  • Member
  • 24 posts

Posted 28 September 2006 - 01:54 PM

Hey Everybody,

I'm working on a site that I can upload my videos to and allow others to download them (as long as they are registered), I have my layout I just need to get into the coding but i'm not sure how I should go about making my tables for my database. In specific I don't know how I would do my video database should i have the video in the database as a LONGBLOB or is there a better way to handle the video. I would like to upload the video from a page that only I can access when logged on.

Thanks,
Chris

#2 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 28 September 2006 - 02:03 PM

I should move this... but... whatever.

Don't store your files in the database.  It's inefficient.  Create a directory on the server for your videos and store them there.  In the database, store records referring to the name and location of the files you're storing.

Info: PHP Manual


#3 thechris

thechris
  • Members
  • PipPip
  • Member
  • 24 posts

Posted 28 September 2006 - 02:24 PM

thank you thats all i needed to know




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users