Load Random Flash Movie?
Need some help with setting up a small php script to load multiple FLV files (located in a single folder on the server) in a random manner. Code:
View Complete Forum Thread with Replies
Related Forum Messages:
PHP To Alter Flash Movie
I'm not sure if I've posted in the right place, so feel free to let me know if I haven't. I've a situation where I would like to modify values in a flash.exe using PHP where flash.exe is a flash movie which is download and runs on the client side. The reason for this is, I've an online form where I want the values to be submitted to an app for users to download. Each time the user runs the app on their machine it should have the values that they submitted online. Is this possible?
View Replies !
Displaying A Flash Movie To Browser
In a text field of a database I stored the flash code to display movies (swf). Depending on the user's request I send the code dynamically to the browser. It works great in a majority of platform and browsers except on Mac with IE 4.01 Is there any type of header() we need to send to the browswer before sending a flash movie ? It has nothing to do with the detection of Flash because I have a flash banner at the bottom of the page that works great. This one is static thought.
View Replies !
Embeding/Including A Flash Movie That Uses Xml Files
I use a flash movie in a certain directory lets say: english/products/<prod_id>/gallery.swf That movies uses the files: settings.xml, menu.xml, splash.jpg that are in the same directory as the flash, and /images/pics.xml and pictures in that directory and pictures in the /images/thumbs/ directory. I can embed the flash fine in a gallery.php file that is in the same directory as the swf file. Here are the problems: When i try to include that gallery.php file in the /english/offer.php?id=x file the movie doesn't load If i try to embed the movie in the offer.php the movie loads ok but can't find the files it needs to work correctly. I moved the files in the /english/ directory and the movie loaded ok so by embeding the movie in offer.php it makes the swf look for the files in /english/ directory instead of english/prod_id/ I can't hardcode it in the flash movie because its a user gallery and each user will have his own gallery and files. And i m not that good at flash so i dont know how to change the flash so it would use parameters from php. Is there a way in php to include or embed the flash movie and force it to read the files from the correct directory?
View Replies !
Using Fpassthru To Load Quicktime Movie
This script uses fpassthru() to load a quicktime movie that is outside of the document root. I am using an embedded image tag to call this php script. The url looks like this. movie.php?fileID=3 When the quicktime movie player loads the movie does not start playing. All I see is the blue broken image Q in the browser. Code:
View Replies !
External Random Flash Script
I want to write an external php script that would randomise flash files in a particular folder on my site and display one in a given space. I've already composed the script. <?php $location = "http://www.mysite.com/images/"; $files = array("1", "2", "3", "4", "5", "6", "7", "8", "9", "10"); $file = array_rand($files, 1)[0]; $ending = ".jpg"; $img = $location . $file . $ending; echo "<img src="" . $img . "">"; ?> The problem is how to inset this into the flash movie tags. something like <embed src="flashmovie.swf"> where flashmovie.swf is the flashfile generated from the script above.
View Replies !
How To Open Random Flash Page Using Hyperlink?
I'm new to using PHP so please bear with me. I'm trying to create a hyperlink that will open a random Flash page so that users will see a different flash module each time. Here is some of the code that I wrote but I'm not sure if it'll work since I'm not very good at coding. Oh yeah, I'm not using a database either. // random_menu.html <head> <?php $i = rand(0,3); ?> </head> <body> <a href = "www.x.com/random.php?i=$i">x</a> </body> --------------------------- // random.php <head> <?php $i = $_post["i"]; if ($i = = 0){ $value = "a"; } else if ($i = = 1){ $value = "b"; } ...etc. </head> <body> <object> <param name="movie" value="$value"> <embed src="$value"></embed> </object> </body> Please help if you know how to do this.
View Replies !
External Random Flash(.swf) Display Script
I want to write an external php script that would randomise flash files in a particular folder on my site and display one in a given space. I've already composed the script. <?php $location = "http://www.mysite.com/images/"; $files = array("1", "2", "3", "4", "5", "6", "7", "8", "9", "10"); $file = array_rand($files, 1)[0]; $ending = ".jpg"; $img = $location . $file . $ending; echo "<img src="" . $img . "">"; ?> The problem is how to inset this into the flash movie tags. something like <embed src="flashmovie.swf"> where flashmovie.swf is the flashfile generated from the script above.
View Replies !
Random Page Load
I have a page setup with an iframe. What I am trying to do is to load one of 3 features in the iframe. The iframe is: Code: <iframe src="featured1.html" name="player" id="player" scrolling="no" frameborder="0" height="316" width="490"></iframe> I'd like it to load either: featured1.html featured2.html featured3.html
View Replies !
Movie Trailers
I've got this MySQL table with some movie trailers. In that table I've got the field HITS. How can I display current weeks top 5 movie trailers? When someone views a trailer, I just update the HITS field by +1 WHERE id = trailer_ .
View Replies !
Trying To Embed A Movie
I know the HTML embed tag but it is not working very well in IE or FireFox... is it just me or is it the browser support? I mean the code is simple. <html> <body> <embed src="movie.mov" width="640" height="480"></embed> </body> </html>
View Replies !
Picture Of First Frame Of A Movie
Can any one let me know how can I capture or save the picture of the first frame of a video movie. Actually I want if some one uploads a video to my website then I also want to show the thumnail of that movie so want to show the image of the first frame of that movie....
View Replies !
Simple Movie System
i wanna try to make a movie system where i can upload my videos but i don't have to make a new page each time i make an new i would want the URL to look like video.php?id=1 does anyone know how to do that?
View Replies !
Slice An Image From Movie
are available any functions working with movies? .avi, i guess or .wmv. i woud like to slice one image (first, i guess:) from movie for my preview in the gallery.
View Replies !
Problem With Movie File Upload
Hi everybody, I want to upload movie files of quick time format. Max file size is 4MB. Default file size in php.ini file is 2MB. i use the functions below: ini_set("max_execution_time",��'); ini_set("uploaded_max_filesize",ƊM'); ini_set("post_max_size",ƋM'); ini_set("memory_limit",ƌM'); move_uploaded_file(srcFile,destFile) in platform linux7.3 i can upload movie files with this script but in linux 8.0 i can't. it is possibly for the php.ini configuaration file that differs in linux7.3 and 8.0(php4.0)
View Replies !
Mpg Movie Stops Playing In Browser
I developed a web page that plays an mpg using the simple embed tag. When the page loads, the video starts, but then stops after a few seconds. I use the embed tag because I want the user's default player to kick in. What might be causing the video to start then stop?
View Replies !
Create Image From Movie Frame
I'm design a new website based on PHP, I haveing a module to umpload images (jpg,gif) and upload movies (mpeg,wmv). To create thumbs from the uploading mages I'm using the GD to resize the original images. Now I want to create a thumbs for the movies too, in the past I used the convert command (ImageMagic) on my personal Linux machine, but the option to execute command from the webserver is blocked due to security issue. I find that ther is ffmpeg-php modules to do my task (create and image from movie frame) but my server's hosting company does not use it. Is there any option in PHP / GD to do it?
View Replies !
Uploading A 13MB Quicktime Movie
I have tried to upload a 13MB file to a mysql database. I have a max upload limit of 16MB. When I try to upload a small file it works fine, but hwne i try to upload the 13MB file it comes up with an error message saying that it tried to upload a 13MB file and taht the max memory limit of 16MB was exhausted. It says that there is an error on line 23. I have commented line 23 below. Should I increase my php memory limit? Why is it saying that the 13MB memory limit is exhausted when the file is 13MB? PHP Code: if (($_FILES['file']['name'] != "") && ($_FILES['file']['size'] > 0)){                 $tmpName  = $_FILES['file']['tmp_name'];                 $fp = fopen($tmpName, 'r');                 $file = fread($fp, filesize($tmpName));  // line 23                 $file = addslashes($file);                 fclose($fp);
View Replies !
Movie Theatre Listing Times
This is for a small movie chain (up to 6 theatres with up to 12 movies/ 10 showtimes for each movie) I don't know enough PHP to develop this myself, and would rather not "reinvent the wheel" if someone else has something like this available.
View Replies !
Getting The Size Of A Quicktime Movie Or Other Media Files
I'm writing a php based fileserver/ftp app and I need to be able to display quicktime (and eventually other media) files via the object/embed tags. I've got everything working except for the sizing. I'd like to avoid asking users to specify the size of the file upon upload, if possible. Also, making the size very large to fit anything inside causes major layout problems, so that is not an option. So, I was wondering if anyone knew of a way to get this info from a file. Is there something analogous to getimagesize() for quicktime? I couldn't find anything in the manual. I was also thinking of maybe using a graphics library to export a single frame of the movie as a jpg and then get the size of that. I haven't looked into this yet to see if this is possible. Are there any other ways to deal with this issue?
View Replies !
$_FILES Problem - Upload An Image, Movie, And An Mp3
I have this form that can upload an image, movie, and an mp3, but none of them are required so i have this for the movie and same thing for mp3 just different var names. The thing that isn't working is if i don't browse to anything in the video or mp3 section it still does the stuff that is in the script below when it shouldn't. if(empty($_FILES['movfile'])) { include('mov_work.php'); $vars = uploadMovie($_FILES['movfile'], "pr"); $ms = explode(":", $vars[2]); $m = "INSERT INTO mov VALUES('', '{$ms[0]}', '${ms[1]}', '{$mov_title}', '{$mov_content}', NOW(), '{$month}', '{$day}', '{$year}', '{$vars[0]}', '{$pub}', '{$vars[1]}', '{$vars[3]}', '{$vars[2]}')"; //$m_id = mysql_insert_id(); }
View Replies !
Calling Upon Movie Files By Class Id So The Path Can Be Hidden?
I am currently running mkportal, and have the media module installed. I would like to give the members of my site the opportunity to post all the files elsewhere, is there a way I can alter the php to call upon the files a different way such as classid? or maybe the number assigned for that page since its page is given a number, it just stores every thing in one folder on the server.
View Replies !
Adding Intro/outro To A Movie? PHP FFMPEG FLVTOOL2?
we can use the simple FFMPEG conversion command from the command line to convert a video to FLV. exec("ffmpeg -i meow.wmv -ar 22050 -f flv output/meow.flv"); Now say I have two seperate videos, one called intro.flv and one called outro.flv How would I add these to the begining and end of output/meow.flv. Also, I know using GD, or something alike, we can put text into a picture.... What about putting text into a video, on every frame. I'm looking for something simple. Maybe this is already answered here, maybe I'll answer myself, but I'll get results and thats all that matters, get my scripts working the way they need to, and anyone else can use this to help them.
View Replies !
Duplicate Entries - Check To See If When Someone Enters A Movie Into The Database
I have a sql table called MovieDB that has a column called 'name'. I need to check to see if when someone enters a movie into the database, if that movie already exists. if it does, i will not add it. It should be pretty simple. so far my code is $duplicate = mysql_query("SELECT * FROM MovieDB where name='$name'"); Where $name is what the person enters into the form. Should this be in quotes? And what do I do with result to see if it returns anything?
View Replies !
How Can I Load Load Additional Extensions ?
My OS is Winxp . My web server is apache 2 which is installed as a NT service . My php version is 4.32 , and I extracted it into "c:php" . I run php as a apache module . I want to load Additional extensions .They are php_mbstring.dll, php_xslt.dll and php_domxml.dll . I have made changes to php.ini as follow. extension_dir = "c:phpextensions" extension=php_mbstring.dll extension=php_xslt.dll extension=php_domxml.dll then I restarted apache2 . but it told me that the modules could not be located .
View Replies !
Flash, PHP & XML
Is anyone out there doing anything in terms of parsing in XML into Flash using PHP as a go between so to speak? I have done some stuff parsing XML directly into Flash but I ntoiced a huge speed hit. Anyways, I was wondering if anyone has done anything or has seen a way to parse XML into Flash via PHP.
View Replies !
Php/flash
I have a text field (multiline) in Flash. When I click "submit" it hits a PHP script. The PHP file sends the message in the text field to an email address. My problem is that when i receive the email, the message is joined together, not recognizing the line breaks that were made on the Flash end. Does the variable of the text field need to be manipulated before it gets posted to the php file?
View Replies !
PHP Flash
I am connecting PHP & Flash.. $var = $this->_nm->getVar(); <-- Get data from database $var1 = gettype($var); if (is_string($var1)) { echo "s=".$var1; } If i print in the browser, it will return s=string, however if i LoadVars in flash it will return s=NULL
View Replies !
Flash And PHP 4.3.1
I've been developing a project in Flash 5 that utilises both PHP and MySQL. The development and testing was done on a PHP server running version 4.1.2 (pretty old I know) and everything was working perfectly. However, upon upgrading to the latest version of PHP 4.3.1, it appears that my Flash application no longer communicates with the PHP files. Is there some new security measures that were introduced in PHP 4.3.1 that could be clashing with how the Flash file operates? Has anyone else experienced similar problems?
View Replies !
Php, Xml And Flash
i have a video with captioning. video is a flash file and captioning is in XML file they are working really fine. now what the problem is:: I am getting the path of xml file through php as well as video(flv) file path through php. the video works well but the xml file path which i got through php( from database) is not working. the captioning part (xml file) is not working now only the video is displayed... could anyone please help me to get out this situation..is the problem with php and xml or php,xml and flash.
View Replies !
PHP And Flash 8
This is a very weird problem having to do with security settings. I'm trying to access a php file, stored on a server on my computer, from a .swf file embedded in a webpage, but when it only works when you open the .swf file with flash 8. When you use the .swf file in a browser it comes up with this security thing and it wants you to change the security settings here: http://www.macromedia.com/support/d...manager04a.html Then I change it to always allow then I add 'local' and 'localhost' but nothing happens This database accessing work 100% when using the program flash 8. Code:
View Replies !
PHP With Flash
I know this is not a flash forum, but I have tried about 3 flash forum and no one either seems to know the answer or they will not help me one; so I thought I would give my regular visited PHP forum a swing at this one. I am trying to load images in Flash through PHP; but have no idea about action scripting. Has anyone every tried to do this; if so please advise me on how you accomplished this.
View Replies !
Flash
I dont really have a problem just enquiring, i have heard it is possible to do PHP in Macromedia Flash i was just wondering if anyone else knows about this because i have a college project and it needs to have PHP accessing databases, searching adding removing etc, and i really enjoy using Flash and i was wondering if it is possible
View Replies !
PHP & Flash
I am trying to send XML from flash to php so I can add it to the database. I am using the XMLconnector, from flash, and sending the results to a php file, however I have no idea how to call those parameters.
View Replies !
Flash...
I have a directory for SWF files, and each swf filename is stored in my database.. I want to retrieve the sun_button2.swf" from my database, and show it by passing the id from the url... Now The Flash Script is supossed to show something, but it doesnt. Code:
View Replies !
Flash Still
I've gone through a couple of tutorials from online and books and seem to be stuck and think it might be my setup. No matter what I do with php and action scripts my flash display is empty. So I dont konw if it's excecuting the backend stuff. I want a simple test that I can do which if I know doesnt work then my setup is wrong. Code:
View Replies !
XML V/s PHP V/s Flash
Browsers have come along way since 2000 and XML has a great deal of potential. But how does XML (along with XSL, XSLT, XSL-FO, XPath, XML-DOM, XQuery, XPointer and XLink (AJAX: Asynchronous JavaScript and XML,)) stack up against the use of just PHP / Javascript or Flash?
View Replies !
Flash To PHP
I've got a flash to php form on my site that works 100% of the time... for me. Unfortunately, I keep receiving undefined emails through it. Since it works for me I don't know why it wouldn't work for someone else. Code:
View Replies !
PHP And Flash Together
if PHP can be combined with Flash to the effect that Flash manages all of the user interface, and PHP is allowed to handle any dynamic content referenced from a database?
View Replies !
With Flash
I need to draw a map for the customers to select the seats they preferred. Im thinking og using flash to draw the map and then post the data to php. Is this works?
View Replies !
|