Online Shopping : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to
Did You Find This Entry Useful?

35 of 84 people (42%) answered Yes
Recently 8 of 10 people (80%) answered Yes


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

Nov 28th, 2008 07:23
healthy man, 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.
  //a bunch of php...
  <object width="100" height="100">
    <!-- param tags as necessary for your .swf -->
    <embed src="whatever.swf"></embed>
  // more php code if you want...