Hi all.
I work under some flash site with so called "skins" - all interface elements loaded into main movie, generated with PHP from Mysql database.
Here the code for fetch swf and get it to flash:
<?php
$hostname="localhost";
$port=3306;
$user="someuser";
$password="somepass";
$database="flash";
function db_login() {
global $hostname, $port, $user, $password, $database;
if (!mysql_connect ($hostname.":".$port, $user, $password)) {die ("Could not connect to DB");}
if (!mysql_select_db($database)) {die ("Could not select DB");}
}
db_login();
switch ($type_q){
case "getswf":
header ("Content-Type: application/x-shockwave-flash");
$q="select $swfname from theme where id=$theme_id";
$r=mysql_query($q);
echo mysql_result($r, 0);
break;
}
?>
so, if i type in brouther
http://www.abissoft.com/~wave/flash/fetch.php?type_q=getswf&swfname=main_bg&theme_id=1
i see background from first skin (theme)
all work perfectly, BUT until I move script to another server
when I do that, brouther show me off white screen, and if i right-click on it i see standar flash menu whith "movie not loaded" in top of it
i check that correct binary is in DB
i comment header() and got binary trash that is exactly like on my old server, but it's dont work.
Can anybody help me?
Thanks for your attention.
Denis Grankin