I found it but when i run the script it doesnt work

the script is:...................... goster.php (It makes swf)

<?
header ("Content-type: application/x-shockwave-flash");
include ("dblib.php");
$result = $baglan->query($mysql_table1_name, "id", $id);
$row = mysql_fetch_array($result, MYSQL_ASSOC);
ob_start();
echo $row[swfs];
ob_end_flush();
?>


And this script calls the goster.php:..........................

<?php
  if (isset ($id) && $id != "")
  print "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"
codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.c
ab#version=6,0,0,0\" width=\"1\" height=\"1\">
  <param name=\"movie\" value=\"goster.php?id=$id\">
  <param name=\"quality\" value=\"high\">
  <embed src=\"goster.php?id=$id\" quality=\"high\"
pluginspage=\"http://www.macromedia.com/go/getflashplayer\";
type=\"application/x-shockwave-flash\" width=\"1\"
height=\"1\"></embed></object>";
?>

width and height doesnot important. This swf must play some music. But it
doesn't play any sound

-----Original Message-----
From: Richard Black [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 27, 2002 1:46 PM
To: Php Win32 list
Subject: RE: [PHP-WIN] Flash + PHP +Mysql


The header for outputting a Flash movie is:

Content-type: application/x-shockwave-flash

HTH,

Richy
==========================================
Richard Black
Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com
Tel: 0141 435 3504
Email: [EMAIL PROTECTED]

-----Original Message-----
From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]]
Sent: 27 May 2002 10:39
To: Aziz Durmaz
Cc: Php Win32 list
Subject: RE: [PHP-WIN] Flash + PHP +Mysql


> How we can store swf movies in the mysql database and how we can show
> them...

BLOB's..... (but why would you like to do that? Who do you do a select on
binary junk?)

> What header needs?

No heads... just brains....

> For example in jpeg image we use - header ("Content-type: image/gif"); -
> For swf movie what we are use??

This is what you should send to the client webbrowser from the webserver,
not
to store in the database.

You will find moreinformation at www.w3.org look at the HTML specifications
under FORMS, somewhere....

Check out:
http://www.w3.org/TR/1998/REC-html40-19980424/types.html#type-content-type
to find some suggestion about content types.

Probably the content-type should be video/mpeg or something... god knows....

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to