PHP Help

i would like to insert a function between this two function to get an external html or php file and render it in between this two section

GetDCCPInterface()->getIRenderer()->renderHomeFeaturedVideo();
GetDCCPInterface()->getIrenderer()->renderHomeFeaturedGallery();


<?php             
            GetDCCPInterface()->getIGeneral()->renderHomepageSlider();
            GetDCCPInterface()->getIQuickNewsPanel()->renderPanel();                         
            GetDCCPInterface()->getIRenderer()->renderHomepageTabs(); 
            GetDCCPInterface()->getIHome()->getHomepageContent(CPHome::CONTENT_ON_FULLWIDTH);
        
            if(GetDCCPInterface()->getIHome()->isHomepageColumnAndSidShowed())
            {
                $page_common_opt = $GLOBALS['dc_pagecommon_opt'];            
                GetDCCPInterface()->getIGeneral()->includeSidebar($page_common_opt['page_sid'], $page_common_opt['page_sid_pos']);
                
                if(GetDCCPInterface()->getIGeneral()->getSidebarGlobalPos($page_common_opt['page_sid_pos']) == CMS_SIDEBAR_RIGHT)
                {
                    echo '<div class="page-width-left">';                              
                } else
                {
                    echo '<div class="page-width-right">';     
                }

                GetDCCPInterface()->getIHome()->renderHomepageSections();            
//                   GetDCCPInterface()->getIHome()->getHomepageContent(CPHome::CONTENT_ON_COLUMN);                    
//                   GetDCCPInterface()->getIRenderer()->renderHomeFeaturedVideo();
//                   GetDCCPInterface()->getIrenderer()->renderHomeFeaturedGallery();
//                   GetDCCPInterface()->getIRenderer()->renderHomePhotoNews();  
//                   
//                   GetDCCPInterface()->getIRenderer()->renderHomeBlogPosts();
//                   GetDCCPInterface()->GetIHome()->renderFeaturedStory(); 
//                   GetDCCPInterface()->getIRenderer()->renderHomeMainStreamPosts();            
                echo '</div>  <!-- page-width-x -->';
            }
        ?>

Open in new window

tunapoAsked:
Who is Participating?
 
ZShaverCommented:
if the file is on your server you can include() it
otherwise stick readfile("http://website.com/file.html"); between the two functions
0
 
tunapoAuthor Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.