Jump to content

Graxeon

Members
  • Posts

    260
  • Joined

  • Last visited

Everything posted by Graxeon

  1. Just a simple question: http://daiphyer.com/streaming_flv_transfer.php It actually works like this: http://daiphyer.com/streaming_flv_transfer.php?url=http://www87.megavideo.com/files/577c7fb5348f2ff0a70c5a53c92d556e/&type=flv This is what it's doing: Takes the MV video and converts it to an FLV file (or somehow makes it compatible with an FLV player). Tried looking at the source code, nothing...asked on another forum and they said PHP files are run before they are displayed (well this one is at least). 1. What is this called? 2. Can you point me somewhere that explains this in more detail? (unless you know how to explain it yourself) To all wondering: Just doing this cause I hate the MV player, doesn't blend with my site, and I need an easier way of linking my videos. Tyvm <3
  2. Anyone know how to fix it?
  3. That made the player show up if I DONT put the <?php ?> wrappers. I got this as a result: $playlists = "Playlist1"; if ( $episode == "1" ) { echo " THE FLASH PLAYER IS SHOWN HERE "; } if ( $episode == "2" ) { echo "E2! "; } if ( $episode == "3" ) { echo "E3! "; } echo "Welcome to my homepage!"; However, the player doesn't play anything if the play button is pressed (it just has the little "loading" thing spinning around). If I DO put the wrappers, then nothing comes up the the process page. I have this: <html> <body> <?php $playlists = "Playlists1"; if ( $episode == "1" ) { echo "<script type='text/javascript' src='swfobject.js'></script> <div id='player'>Playlist# - Episode #</div> <script type='text/javascript'>var so = new SWFObject('mediaplayer.swf','mpl','480','272','8'); so.addParam('allowscriptaccess','always'); so.addParam('allowfullscreen','true'); so.addVariable('height','272'); so.addVariable('width','480'); so.addVariable('file','playlist#episode#.flv'); so.addVariable('logo','watermark.png'); so.addVariable('searchbar','false'); so.addVariable('showstop','true'); so.write('player'); </script><br />"; } if ( $episode == "2" ) { echo "E2!<br />"; } if ( $episode == "3" ) { echo "E3!<br />"; } echo "Welcome to my homepage!"; ?> </body> </html> Again, with the php wrappers, nothing shows up. Remove them and you get this: $playlists = "Playlist1"; if ( $episode == "1" ) { echo " THE FLASH PLAYER IS SHOWN HERE "; } if ( $episode == "2" ) { echo "E2! "; } if ( $episode == "3" ) { echo "E3! "; } echo "Welcome to my homepage!"; Help please?
  4. Sorry for the double post, but I've made a step towards fixing this. I'm amazed I forgot to put those tags...wow... But yeah, with the tags the E1! showed up and it works. I tried putting the flash player script in it but it came out with this: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in C:\Program Files\apachefriends\xampp\htdocs\process2.php on line 11 Any ideas on how to run that script in place of the E#!s? Here's the process2.php file: <html> <head> <title></title> </head> <body> <?php $playlists = "Playlist1"; if ( $episode == "1" ) { echo "<script type="text/javascript" src="swfobject.js"></script> <div id="player">Playlist# - Episode #</div> <script type="text/javascript">var so = new SWFObject('mediaplayer.swf','mpl','480','272','8'); so.addParam('allowscriptaccess','always'); so.addParam('allowfullscreen','true'); so.addVariable('height','272'); so.addVariable('width','480'); so.addVariable('file','playlist#episode#.flv'); so.addVariable('logo','watermark.png'); so.addVariable('searchbar','false'); so.addVariable('showstop','true'); so.write('player'); </script><br />"; } if ( $episode == "2" ) { echo "E2!<br />"; } if ( $episode == "3" ) { echo "E3!<br />"; } echo "Welcome to my homepage!"; ?> </body> </html>
  5. I know, Im sorry. That topic wasn't heading in the correct direction I wanted it to go. I did get an answer for it but I wasn't going to go through the process of creating all of those things. Having a DB, Mysql, etc... I now just need a simple way of using the echo and ifs.
  6. Ok, so I have this: <html><body> <h4>Title Here</h4> <form action="process2.php" method="post"> <select name="playlists"> <option>Playlist1</option> <option>Playlist2</option> <option>Playlist3</option> </select> Episode: <input name="episode" type="text" /> <input type="submit" /> </form> </body></html> And that leads to this: $playlists = "Playlist1"; if ( $episode == "1" ) { echo "E1!<br />"; } if ( $episode == "2" ) { echo "E2!<br />"; } if ( $episode == "3" ) { echo "E3!<br />"; } echo "Welcome to my homepage!"; </body> </html> When I select Playlist1 and put 1 for the Episode, I get this on process2.php: $playlists = "Playlist1"; if ( $episode == "1" ) { echo "E1! "; } if ( $episode == "2" ) { echo "E2! "; } if ( $episode == "3" ) { echo "E3! "; } echo "Welcome to my homepage!"; I acually just want it to say E1! For that, I need a way of adding multiple "if"s After that is done, I'm going to change the E#!s into this script for each episode: <script type="text/javascript" src="swfobject.js"></script> <div id="player">Playlist# - Episode #</div> <script type="text/javascript">var so = new SWFObject('mediaplayer.swf','mpl','480','272','8'); so.addParam('allowscriptaccess','always'); so.addParam('allowfullscreen','true'); so.addVariable('height','272'); so.addVariable('width','480'); so.addVariable('file','playlist#episode#.flv'); so.addVariable('logo','watermark.png'); so.addVariable('searchbar','false'); so.addVariable('showstop','true'); so.write('player'); </script> So that means that I need a way of running that script in the if's echo attribute. I tried adding that script instead of the E# but it came out really messed up. Can anyone help me fix this problem? I did read through the PHP manual (the things that I was looking for) but with not much of an outcome. I acually despise that manual because they don't give examples...they just say what happens. Please don't point me to that manual, I wasted 2 hours on it for no reason. Thank you very much
  7. Ok, so how would I go about using it?
  8. I'm using XAMPP just to save time from uploading. Will that do? (since it has a bunch of stuff within it)
  9. Well...my main problem is finding out what this is even called. Looking through a guide aimlessly when you're a newbie is pointless without some kind of tip. Been looking through that manual for a while now and it's nothing pertaining to me. What I need is a way of executing that flash player script within the the echo thing. No, I don't have a database. Would you mind explaining how I can get that database built? I'd much rather code it myself (meaning all I need is an editor) because I'm not up for purchasing services atm. I'd really just like a way of pulling this off: if videos = Playlist1 and episode = 1 then final output that the user would see is the video "Playlist1Episode1"
  10. First off, hello! Alrighty then: I'm a complete newbie at PHP. I was messing around with my videos and I wanted to organize them a bit for online use. So here is what I'd like to do: I have FLV videos playing through a flash player whos name I can't give out apparently because of the advertising rule....but I'll give the code for it later on. Now, I can get those FLV videos working all nice and dandy but I have to create multiple pages for each video since I was just using HTML. However, with PHP I can, of course, make it a bit easier. I'd like this set-up: <html> <head> <title></title> </head> <body> <h4>Title</h4> <form action="process.php" method="post"> <select name="videos"> <option selected="selected">Select a playlist</option> <option>Playlist1</option> <option>Playlist2</option> <option>Playlist3</option> </select> Video #: <input name="episode" type="text" /> <input type="submit" value="Submit Query" /> </form> </body> </html> Now with that...I'd like to make it compatible with this flash player: <script type="text/javascript" src="swfobject.js"></script> <div id="player">PlaylistX - episodeX</div> <script type="text/javascript">var so = new SWFObject('mediaplayer.swf','mpl','480','272','8'); so.addParam('allowscriptaccess','always'); so.addParam('allowfullscreen','true'); so.addVariable('height','272'); so.addVariable('width','480'); so.addVariable('file','playlistXepisodeX.flv'); so.addVariable('logo','WATERMARK.png'); so.addVariable('searchbar','false'); so.addVariable('showstop','true'); so.write('player'); </script> So in the end, I'd like a PHP file which takes that form's (first code I gave) inputs and have it output that flash player code but with the specified video implemented. I don't mind using the entire flash player code per video, I'd rather have a huge file than a million of them I tried using the IF and ARRY things but with not much of an outcome. I thought that if I said something like "if videos = Playlist1 and episode = 1 then final output that the user would see is this: <script type="text/javascript" src="swfobject.js"></script> <div id="player">Playlist1 - episode1</div> <script type="text/javascript">var so = new SWFObject('mediaplayer.swf','mpl','480','272','8'); so.addParam('allowscriptaccess','always'); so.addParam('allowfullscreen','true'); so.addVariable('height','272'); so.addVariable('width','480'); so.addVariable('file','playlist1episode1.flv'); so.addVariable('logo','WATERMARK.png'); so.addVariable('searchbar','false'); so.addVariable('showstop','true'); so.write('player'); </script> So umm...can someone help me with this? Idk what this would be called so idk what to search for .
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.