| Server IP : 172.64.80.1 / Your IP : 172.69.58.211 Web Server : Apache System : Linux mail.federalpolyede.edu.ng 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64 User : federalpolyede.edu.ng_idh35skikv ( 10000) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/federalpolyede.edu.ng/httpdocs/admin_student/ |
Upload File : |
<?php
///**
// * Created by PhpStorm.
// * User: adisa
// * Date: 01/12/2023
// * Time: 03:12
// */
//$page = file_get_contents('http://www.federalpolyede.edu.ng/admin_student/login.php/');
////$page = file_get_contents('http://icefedepolyede.com/');
////$dom = new DOMDocument();
//$dom = new DOMDocument('1.0', 'UTF-8');
//libxml_use_internal_errors(true);
// $doc = $dom->loadHTML($page);
////echo $doc;
////echo getTextFromDocument($doc)."\n";
//libxml_use_internal_errors(false);
//$divs = $doc->getElementsByTagName();
//
////$tables = $doc->getElementsByTagName('form');
$source = file_get_contents('http://www.federalpolyede.edu.ng/admin_student/login.php/');
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $source); // The link of the site
curl_setopt($curl, CURLOPT_ENCODING, 'gzip'); // Makes the request faster
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); // Return the source as string
$source = curl_exec($curl);
$cleanSource= preg_replace('|href=\'(.*)\'|', '', $source);
echo $source;
$table = getTagWithContents($source);
?>