Jump to content



  • Please log in to reply
3 replies to this topic

#1 live poet

live poet
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 23 May 2006 - 08:39 PM

Ok, so this might take a while and i really appreciete anybody who can help me.
I have a site and i want to put video's and animations on it, i asked my friend who is really good with computers if he could help me make a comment php thing, he told me that first i what i have to do is make a script where whenever i upload a video or animation to my site, IT AUTOMATICALLY EMBEDS IT. HERE IS WHAT MY FRIEND SAID:

Ruvio: ok listen to this,,,
Me: ok
Ruvio: u have 10000 videos
Ruvio: and u want to embed all of them oon seperate pages for ur website
Ruvio: that would take days
Me: .....
Ruvio: but you make a scirpt that , when in the "videoupload" fold,er , the embeds are generated for u
Ruvio: so when u get new materal u dont hhave to update constantly
Ruvio: google aroudn for folder manipulating with php
So thats what he told me to do and im a big newb at php, and i was wondering if anybody knew of how to do this or any ways to help me understand what my friend is asking me to do, OR if u know of something THAT does what my friends telling me to do. ALSO!!!!!!!!!!!!!!!!!!!!! i am on a site with this other kid in my grade and he only lets me have 1 database so my friend RUVIO said that i have to make a php or html file with thess functions without having to make a new database or something like that.!

my website is www.media-sc.net
i am currently under construction.

I GREATLY APPRECIETE ANY SORT OF HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
THANKS ALOT, and i wasnt really sure of where to put this topic

#2 neylitalo

  • Staff Alumni
  • Advanced Member
  • 1,854 posts
  • LocationMichigan, USA

Posted 23 May 2006 - 09:30 PM

I'd suggest doing it something like this: Have one PHP file, but have it take info from $_GET and use that to generate the embed tag. Something like this:

$fileName = $_GET['video'];
echo "<embed src='videos/".$fileName.".avi'>";

I don't know the syntax for the embed tags, but you'd have to do something like that for the "src" attribute. Go nuts!

http://nealylitalo.net - My personal website, and home of The Netizen's Journal.

#3 live poet

live poet
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 24 May 2006 - 01:12 AM

hmm now i gotta figure what the fuck u just said out, lol

#4 ober

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

Posted 24 May 2006 - 12:25 PM

If you post a more detailed question in PHP Help, you'll probably get some more help. And I'd suggest reading some tutorials on the main site (http://www.phpfreaks.com) if you're completely new to PHP and server-side scripting.

Info: PHP Manual

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users