Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Aug 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Script for movies site

    Anyway guys, i got this movie site, and right now its all html based and updating links is a real pain in the *** cuz i gotta go through every single file every time. So what im looking for it like a script where the videos all play from one file. Like a simple script so that I can play all videos from one file, and so if I need to add a new video all I do is type the title and link into a form and it does it for me. Any1 can help me out? tongue.gif thank alot smile.gif

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,546
    Thanks
    8
    Thanked 1,093 Times in 1,084 Posts
    Just because you tweaked my curiosity, give us a link to what you have now?

  • #3
    New to the CF scene
    Join Date
    Aug 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by mlseim View Post
    Just because you tweaked my curiosity, give us a link to what you have now?
    www.k-movies.com

  • #4
    Senior Coder rafiki's Avatar
    Join Date
    Aug 2006
    Location
    Floating around somewhere...
    Posts
    2,046
    Thanks
    19
    Thanked 42 Times in 42 Posts
    BTW I just visited your site, and I got straight past your disclaimer without agreeing.. Should do something about that.

  • #5
    New to the CF scene
    Join Date
    Aug 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Lol yeh i just fixed that. Anyway, you guys get what im asking for or does it require further explanation? thanks

  • #6
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,546
    Thanks
    8
    Thanked 1,093 Times in 1,084 Posts
    I see now that you don't actually host the files, you link to them.

    You could do what you want easily with a simple text file,
    what is commonly called "flat-file database". It's a text file
    that has each movie on a line, with various fields separated
    by pipes |

    So, yours might look like this:

    3423413123|http://www.videosite.com/vid/themovie.mpeg|Return of the Dorks|90 mins|

    Where you have a timestamp (or id), the URL to the movie, a title, length, etc.

    Search Google for some PHP scripting,
    PHP form processing
    PHP write to file
    PHP append to file
    PHP read file

    You'll have a form that simply appends the variables to the file, putting
    the pipes in-between the fields. Another PHP script opens that file and
    puts each line into an array ... uses that array to display your galleries
    and to open each video on its own page.

    No static web pages anymore, it's all controlled by that simple database list.

    ==============

    None of us here have time to write something for you.
    Perhaps you can use the "hire a programmer" section to pay someone.

    But, that's how you can do it easily, with some basic PHP and no MySQL needed.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •