faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

28 of 76 people (37%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

How can i embed a .swf in a PHP script?? without using Ming

Aug 16th, 2002 09:26
Alex Dean, snakeyes,


If you just want to embed a .swf (without manipulating it) simply exit
PHP mode and add an <object> tag just like you would with normal HTML. 
After you've added this HTML, you can continue with PHP if you want.
<?php
  //a bunch of php...
?>
  <object width="100" height="100">
    <!-- param tags as necessary for your .swf -->
    <embed src="whatever.swf"></embed>
  </object>
<?php
  // more php code if you want...
?>