Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Uploading Different Movies !
Old 04-30-2005, 10:35 AM Uploading Different Movies !
Experienced Talker

Posts: 41
Trades: 0
Hey,

I’m trying to upload different movies, but something wrong with my code, any ideas what ?

<?

$Movie1 =

"<object classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" width=\"400\" height=\"366\" codebase=\"http://www.apple.com/qtactivex/qtplugin.cab\">
<param name=\"src\" value=\"Celect_Closet.mov\">
<param name=\"qtsrc\" value=\"http://studies.media.mit.edu/~graceshulner/Sites/eChemistry/Celect_Closet.mov\">
<param name=\"autoplay\" value=\"false\">
<param name=\"loop\" value=\"false\">
<param name=\"controller\" value=\"true\">
<embed src=\"Celect_Closet.mov\" qtsrc=\"http://studies.media.mit.edu/~graceshulner/Sites/eChemistry/Celect_Closet.mov\" width=\"400\" height=\"366\" autoplay=\"false\" loop=\"false\" controller=\"true\" pluginspage=\"http://www.apple.com/quicktime\"></embed>
</object>";


$Movie2 =

"<object classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" width=\"500\" height=\"466\" codebase=\"http://www.apple.com/qtactivex/qtplugin.cab\">
<param name=\"src\" value=\"Celect_Closet.mov\">
<param name=\"qtsrc\" value=\"http://studies.media.mit.edu/~graceshulner/Sites/eChemistry/Celect_Closet.mov\">
<param name=\"autoplay\" value=\"true\">
<param name=\"loop\" value=\"false\">
<param name=\"controller\" value=\"true\">
<embed src=\"Celect_Closet.mov\" qtsrc=\"http://studies.media.mit.edu/~graceshulner/Sites/eChemistry/Celect_Closet.mov\" width=\"500\" height=\"466\" autoplay=\"true\" loop=\"false\" controller=\"true\" pluginspage=\"http://www.apple.com/quicktime\"></embed>
</object>";


$picture[0] = $Movie1;
$picture[1] = $Movie2;
$count = count($picture) - 1;
$num = rand(0,$count);

echo ('<img src="'.$picture[$num].' ');

//echo ('<img src="'.$picture[$num].'" alt="" />');


?>



Thank you for your help !!
grace04 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-30-2005, 10:44 AM
leavethisplace's Avatar
Ultra Talker

Posts: 297
Trades: 0
Looks like code alright!

We need to know what error's you're getting grace04, that way we have some idea of what we're looking at. Also, because I often poke my eyes out for fun, please put the PHP code into the PHP brackets (if you have no idea what vile I just spoke, check out the vBulletin Manual and see what it says about bbCode) so I can see nicely coloured PHP code, honestly it does help
__________________
A lie gets halfway around the world before the truth has a chance to get its pants on. - Sir Winston Churchill

Please visit my sites:
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
leavethisplace is offline
Reply With Quote
View Public Profile
 
Old 04-30-2005, 11:07 AM
Experienced Talker

Posts: 41
Trades: 0
I'm getting the QuickTime icon but the movie is showing/uploading not sure why, any ideas ?

PHP Code:

$Movie1 
=

"<object classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" width=\"400\" height=\"366\" codebase=\"http://www.apple.com/qtactivex/qtplugin.cab\">
<param name=\"src\" value=\"Celect_Closet.mov\">
<param name=\"qtsrc\" value=\"http://studies.media.mit.edu/~graceshulner/Sites/eChemistry/Celect_Closet.mov\">
<param name=\"autoplay\" value=\"false\">
<param name=\"loop\" value=\"false\">
<param name=\"controller\" value=\"true\">
<embed src=\"Celect_Closet.mov\" qtsrc=\"http://studies.media.mit.edu/~graceshulner/Sites/eChemistry/Celect_Closet.mov\" width=\"400\" height=\"366\" autoplay=\"false\" loop=\"false\" controller=\"true\" pluginspage=\"http://www.apple.com/quicktime\"></embed>
</object>"
;


$Movie2 =

"<object classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" width=\"500\" height=\"466\" codebase=\"http://www.apple.com/qtactivex/qtplugin.cab\">
<param name=\"src\" value=\"Celect_Closet.mov\">
<param name=\"qtsrc\" value=\"http://studies.media.mit.edu/~graceshulner/Sites/eChemistry/Celect_Closet.mov\">
<param name=\"autoplay\" value=\"true\">
<param name=\"loop\" value=\"false\">
<param name=\"controller\" value=\"true\">
<embed src=\"Celect_Closet.mov\" qtsrc=\"http://studies.media.mit.edu/~graceshulner/Sites/eChemistry/Celect_Closet.mov\" width=\"500\" height=\"466\" autoplay=\"true\" loop=\"false\" controller=\"true\" pluginspage=\"http://www.apple.com/quicktime\"></embed>
</object>"
;


$picture[0] = $Movie1;
$picture[1] = $Movie2;
$count count($picture) - 1;
$num rand(0,$count);

echo (
'<img src="'.$picture[$num].' '); 
grace04 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Uploading Different Movies !
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.97466 seconds with 12 queries