alexville Posted April 2, 2006 Share Posted April 2, 2006 How do I do that?[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]How to add swf's (flash) to php pages?[/quote] Link to comment https://forums.phpfreaks.com/topic/6397-how-to-add-swfs-flash-to-php-pages/ Share on other sites More sharing options...
trq Posted April 2, 2006 Share Posted April 2, 2006 No different to adding them to html pages. Something like...[code]<object width="550" height="400"> <param name="movie" value="somefilename.swf"> <embed src="somefilename.swf" width="550" height="400"></embed></object>[/code] Link to comment https://forums.phpfreaks.com/topic/6397-how-to-add-swfs-flash-to-php-pages/#findComment-23140 Share on other sites More sharing options...
alexville Posted April 2, 2006 Author Share Posted April 2, 2006 Thank you for the reply. With this code [code]if ($scorelevel > 13000) { echo "<p>You are on/passed Level 32</p><p><strong>You have finished the game. Of course you can still play. I make new levels all the time!</strong></p>"; <object width="550" height="400">; <param name="movie" value="somefilename.swf">; <embed src="/images/fireworks.swf" width="350" height="200"></embed>; </object>;}[/code], I get a [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Parse error: parse error, unexpected '<' in /home/alexg/public_html/whoami/hello.php on line 152[/quote] error message. Link to comment https://forums.phpfreaks.com/topic/6397-how-to-add-swfs-flash-to-php-pages/#findComment-23204 Share on other sites More sharing options...
Mr.x Posted April 2, 2006 Share Posted April 2, 2006 Theres 2 ways to get around this. Either put it in an Echo or take it out of the php.[code]if ($scorelevel > 13000) { echo "<p>You are on/passed Level 32</p><p><strong>You have finished the game. Of course you can still play. I make new levels all the time!</strong></p>"; echo "<object width='550' height='400'> <param name='movie' value='somefilename.swf'> <embed src='/images/fireworks.swf' width='350' height='200'></embed> </object>";}[/code]OR [code]if ($scorelevel > 13000) { echo "<p>You are on/passed Level 32</p><p><strong>You have finished the game. Of course you can still play. I make new levels all the time!</strong></p>";?> <object width='550' height='400'> <param name='movie" value="somefilename.swf'> <embed src='/images/fireworks.swf' width='350' height='200'></embed> </object><? } [/code] Link to comment https://forums.phpfreaks.com/topic/6397-how-to-add-swfs-flash-to-php-pages/#findComment-23287 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.