문제

The page I'm working on(php project) has a classical left-sidebar menu.

  • Under one of menu-elements I want to show the user "Phpsysinfo"(embed the index.php file of phpsysinfo extension folder into my page).

  • I'm avoiding iframe, so is there any other way to do this? Should i use server side include for this, if yes how?

code:

 <div id="php_sys_info">
    <?php <!--#include file="../../extension/phpsysinfo-3.1.11/index.php" --> ?>
</div>

please resolve my problem.

도움이 되었습니까?

해결책 2

you can directly load that page using load method my way is like this.For this you require jquery.

 <script>
  $('#php_sys_info').load('../../extension/phpsysinfo-3.1.11/index.php');    
</script>
<div id="php_sys_info">

</div>  

다른 팁

Do you need something like this:

include()

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top