egiblock Posted April 18, 2009 Share Posted April 18, 2009 i'm getting control of a domain and going from phtml to php file structure. i basically have everything converted, but i am running into a problem with a video on the site. it doesn't show up !?! i've looked at the code, and everything seems ok. do i have to do something special with shockwave / flash videos with the php code ?? thanks the information / code is pulled from a database, and everything works fine but the video page. here's the code for the header, main video page, and then footer: (i've removed code that doesn't matter) header: session_start(); ?> ... <head> ..... <link type="text/css" rel="stylesheet" href="/global.css" /> <script type="text/javascript" src="/lightbox.js"></script> <script type="text/javascript" src="/swfobject.js"></script> </head> <body> <div id="maincontainer"> <div id="contentwrapper"> <div id="contentcolumn"> <a href="/"><img src="/images/logo.jpg" width="240" height="111" alt="" /><br /> <div id="prinav"> <? if ($section == 'contact') { print "<a href=\"/\"><img src=\"/images/home.jpg\" width=\"165\" height=\"38\" alt=\"\" /></a> <a href=\"/video/\"><img src=\"/images/system_video.jpg\" width=\"165\" height=\"38\" alt=\"\" /></a>"; } elseif ($section == 'video') { print "<a href=\"/\"><img src=\"/images/home.jpg\" width=\"165\" height=\"38\" alt=\"\" /></a> <a href=\"/contact.php\"><img src=\"/images/contact_us.jpg\" width=\"165\" height=\"38\" alt=\"\" /></a>"; } else { print "<a href=\"/video/\"><img src=\"/images/system_video.jpg\" width=\"165\" height=\"38\" alt=\"\" /></a> <a href=\"/contact.php\"><img src=\"/images/contact_us.jpg\" width=\"165\" height=\"38\" alt=\"\" /></a>"; } ?> </div> <div id="mainbody"> videopage: <div id="flashcontent"> <strong>You may need to upgrade your Flash Player to view the Auto-Cut video.<br /><a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW" target="_blank">Click here to download the latest version of Adobe Flash Player.</a></strong> </div> <script type="text/javascript"> // <![CDATA[ var so = new SWFObject("/autocut_video.swf", "autocut_video", "420", "350", "6", "#FFFFFF"); so.write("flashcontent"); // ]]> </script> footer: ?> </div> </div> </div> <div id="rightcolumn"> .... </div> <div id="footer"> <p> Copyright © <? print date("Y"); ?> </p> </div> </div> </body> </html> Link to comment https://forums.phpfreaks.com/topic/154668-phtml-to-php-conversion-no-shockwaveflash-video/ Share on other sites More sharing options...
soak Posted April 18, 2009 Share Posted April 18, 2009 Is the content the same as the original site? If so, are the swf files accessible in their respective locations on the php site? Link to comment https://forums.phpfreaks.com/topic/154668-phtml-to-php-conversion-no-shockwaveflash-video/#findComment-813332 Share on other sites More sharing options...
egiblock Posted April 21, 2009 Author Share Posted April 21, 2009 The swf files are in the same directory as the php files that they are going too. Link to comment https://forums.phpfreaks.com/topic/154668-phtml-to-php-conversion-no-shockwaveflash-video/#findComment-815944 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.