Question

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.

Was it helpful?

Solution 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>  

OTHER TIPS

Do you need something like this:

include()

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top