Re: drop down menu populated from a directory
| From: | Dustin Krysak | Date: | Tue, 01 Jun 2004 03:05:51 +0000 |
| Subject: | Re: drop down menu populated from a directory | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187319@lists.php.net to get a copy of this message | ||
Ok - here is the relevant Quicktime code:
<!-- START QUICKTIME CONTENT -->
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="320" height="256" codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="autoplay" value="true">
<param name="controller" value="true">
<param name="pluginspage" value="http://www.apple.com/quicktime/download/indext.html">
<param name="target" value="myself">
<param name="type" value="video/quicktime">
<param name="src" value="../../../mov/THElostART.mov">
<embed src="../../../mov/THElostART.mov" width="320" height="256" autoplay="true" controller="true" border="0" pluginspage="http://www.apple.com/quicktime/download/indext.html" target="myself"></embed>
</object>
<!-- END QUICKTIME CONTENT -->
Now I figure - getting the file name in there would be pretty easy (for the most part), but the thing is getting the dimensions of the movie in there... as it is possible that not all movies are the same dimensions. I am hoping to have just the one PHP that will change dynamically for the QT content - I would like to avoid having a php or html file for each QT movie.
d
PS - please CC me directly as I am subscribed in digest mode.. thanks much!
On 31-May-04, at 3:08 PM, php-general-digest-help@lists.php.net wrote:
"Dustin Krysak" <mailinglists@digitalcollision.com> wrote in message news:8737D427-B32C-11D8-BF29-000A95902366@digitalcollision.com...ok, I added brackets and made my code to: <?php if ($handle = opendir('../../../mov')) {This should be easy. Please post your QT placeholder (HTML) code. Then we can help. Regards, Torstenwhile (false !== ($file = readdir($handle))) {if ($file != '.' && $file != '..') {$fileName = str_replace('.mov', '', $file); echo '<option value="../../../mov/' . $file . '">' .$fileName . '</option>';} } closedir($handle);} ?> when viewing my page in a browser, it worked! Now what I am hoping to do is put this menu on a PHP page, and have a qt movie placeholder and when this menu is used - replace the placeholder with the selected qt movie... I am just not sure how to do this.