sandbudd Posted October 13, 2008 Share Posted October 13, 2008 Hey guys I need to insert a flash file where it says flash here in the code. I have tried echo statements and get blank pages. The name of the file that needs inserted is flashtest.php and does show up if I put it outside the flash here code? <?php require_once('includes/init.php'); $page['products'] = $catalog->getCategories(); $top20 = $catalog->getTop20(); $page['content'] = "<div class=\"normalPane\">\n<div class=\"border1\"><div class=\"border2\"><div class=\"border3\"><div class=\"border4\"><div class=\"border5\"><div class=\"border6\"><div class=\"border7\"><div class=\"border8\">\n<h2>flash here</h2>"; if(count($top20)>0) { $page['content'] .= "<ul>"; foreach($top20 as $id => $info) $page['content'] .= "</ul>"; } $page['content'] .= "</div></div></div></div></div></div></div></div>\n</div>"; print_page(); ?> Link to comment https://forums.phpfreaks.com/topic/128253-solved-inserting-flash-file-into-php/ Share on other sites More sharing options...
redarrow Posted October 13, 2008 Share Posted October 13, 2008 <?php include("flashtest.php")?> Link to comment https://forums.phpfreaks.com/topic/128253-solved-inserting-flash-file-into-php/#findComment-664236 Share on other sites More sharing options...
sandbudd Posted October 13, 2008 Author Share Posted October 13, 2008 Here is what I tried with no avail. <?php require_once('includes/init.php'); $page['products'] = $catalog->getCategories(); $top20 = $catalog->getTop20(); $page['content'] = "<div class=\"normalPane\">\n<div class=\"border1\"><div class=\"border2\"><div class=\"border3\"><div class=\"border4\"><div class=\"border5\"><div class=\"border6\"><div class=\"border7\"><div class=\"border8\">\n<h2> <?php include("flashtest.php")?></h2>"; if(count($top20)>0) { $page['content'] .= "<ul>"; foreach($top20 as $id => $info) $page['content'] .= "</ul>"; } $page['content'] .= "</div></div></div></div></div></div></div></div>\n</div>"; print_page(); ?> Link to comment https://forums.phpfreaks.com/topic/128253-solved-inserting-flash-file-into-php/#findComment-664245 Share on other sites More sharing options...
redarrow Posted October 13, 2008 Share Posted October 13, 2008 file_get_contents method. <?php $page['content'] = "<div class=\"normalPane\">\n<div class=\"border1\"><div class=\"border2\"><div class=\"border3\"><div class=\"border4\"><div class=\"border5\"><d iv class=\"border6\"><div class=\"border7\"><div class=\"border8\">\n<h2>".file_get_contents("http://www.google.com")."</h2>"; echo $page['content']; ?> include method <?php $page['content'] = "<div class=\"normalPane\">\n<div class=\"border1\"><div class=\"border2\"><div class=\"border3\"><div class=\"border4\"><div class=\"border5\"><d iv class=\"border6\"><div class=\"border7\"><div class=\"border8\">\n<h2>".include("flashtest.php")."</h2>"; echo $page['content']; ?> Link to comment https://forums.phpfreaks.com/topic/128253-solved-inserting-flash-file-into-php/#findComment-664247 Share on other sites More sharing options...
redarrow Posted October 13, 2008 Share Posted October 13, 2008 read a little on adding php to ecohed lines mate........ <?php require_once('includes/init.php'); $page['products'] = $catalog->getCategories(); $top20 = $catalog->getTop20(); $page['content'] = "<div class=\"normalPane\">\n<div class=\"border1\"><div class=\"border2\"><div class=\"border3\"><div class=\"border4\"><div class=\"border5\"><div class=\"border6\"><div class=\"border7\"><div class=\"border8\">\n<h2> ".include("flashtest.php")."</h2>"; if(count($top20)>0) { $page['content'] .= "<ul>"; foreach($top20 as $id => $info) $page['content'] .= "</ul>"; } $page['content'] .= "</div></div></div></div></div></div></div></div>\n</div>"; print_page(); ?> Link to comment https://forums.phpfreaks.com/topic/128253-solved-inserting-flash-file-into-php/#findComment-664249 Share on other sites More sharing options...
sandbudd Posted October 13, 2008 Author Share Posted October 13, 2008 rederrow it worked great...thank you Link to comment https://forums.phpfreaks.com/topic/128253-solved-inserting-flash-file-into-php/#findComment-664259 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.