...

View Full Version : Script for movies site



Amiko
08-07-2008, 08:15 PM
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

mlseim
08-08-2008, 05:21 AM
Just because you tweaked my curiosity, give us a link to what you have now?

Amiko
08-08-2008, 09:55 AM
Just because you tweaked my curiosity, give us a link to what you have now?

www.k-movies.com

rafiki
08-08-2008, 03:27 PM
BTW I just visited your site, and I got straight past your disclaimer without agreeing.. Should do something about that.

Amiko
08-08-2008, 04:22 PM
Lol yeh i just fixed that. Anyway, you guys get what im asking for or does it require further explanation? thanks

mlseim
08-08-2008, 05:10 PM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum