Jump to content

[SOLVED] PHP affecting flv playing?


manifestome

Recommended Posts

Hi,

I am very new to PHP and the site i am setting up is super basic...but i'm having some problems with playing an .flv (using the dreamweaver FLVPlayer_Progressive.swf). If you go to my home page http://www.manifesto-art.co.uk and click on Good Things Come on the menu, it parses the $page variable to index.php to bring up images etc using this code (work8.php being 'home').

 

<?php

if (!isset($_REQUEST['page'])) {

$page = 'work8.php';

} else {

$page = $_REQUEST['page'].'.php';

}

if (file_exists($page)) {

include("./$page");

} else {

echo 'Sorry, the page that you are trying to access does not exist.';

}

?>

 

 

.... but for the Good Things link a big space appears where the .flv should be playing? When I go straight to http://www.manifesto-art.co.uk/work5.php the video plays fine.

So does http://www.manifesto-art.co.uk/index.php?page=work5 . I'm wondering if it might actually be something to do with me having used mod rewrite to create "tidy" php links??

 

Any help would be really really apreciated! can post answer / questions quickly!

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/167696-solved-php-affecting-flv-playing/
Share on other sites

it may be that the swf by dreamweaver is looking for a relative path for the fla.

try putting a copy of the fla in a folder called work5

the swf may not know about the mod rewrite so it is looking in that folder instead of in the main directory

thats great, thanks very much!

it seems it was the second .swf file that "skins" the player in dreamweaver was the one that couldnt be found because of the mod rewrite (stupid of me really). Putting in a separate folder works perfect...and i also just added the backslash on the skin file variable which obviously makes it work too.

 

<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=/Clear_Skin_1&streamName=http://s431.photobucket.com/albums/qq40/mselby/MAShow&autoPlay=true&autoRewind=false" />

  <embed src="../FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=/Clear_Skin_1&streamName=http://s431.photobucket.com/albums/qq40/mselby/MAShow&autoPlay=true&autoRewind=false" quality="high" scale="noscale" width="500" height="400" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />

 

i know this isnt directly php related but thought best to let anyone know using dreamweaver/php/flv and mod rewrite to clean up links...and who is also a newbie!

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.