سؤال

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