File manager - Edit - /home/cipherteam/htdocs/cipherteam.in/API/Finance/CompanyResults/HtmlGetter.php
Back
<?php if(isset($_GET['ResultID'])) $ResultID = $_GET['ResultID']; else exit(); include "dist/html/$ResultID.html"; /*$con=mysqli_connect("localhost:3306", "marketdatauser_ci", "d7o7A8%s2d7", "market_data_ci"); $sql = "SELECT `webdata` AS 'WEBDATA' FROM `eb_post_list` WHERE `link` = $ResultID"; $rows = $con->query($sql); $row = $rows->fetch_assoc(); echo $row['WEBDATA']; /*include("simple_html_dom.php"); $str = "https://www.equitybulls.com/category.php?id=$ResultID"; $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => $str, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'GET', )); $response = curl_exec($curl); curl_close($curl); $html = str_get_html($response); $div = $html->find('div[class=single_page_content]',0); $no = 0; while($no < count($div->find('a'))) { $div->find('a',$no)->outertext = ''; $no = $no + 1; } $no = 0; while($no < count($div->find('h3'))) { $div->find('h3',$no)->outertext = ''; $no = $no + 1; } $no = 0; while($no < count($div->find('h4'))) { $div->find('h4',$no)->outertext = ''; $no = $no + 1; } $div->find('h3',0)->outertext = ''; $div->find('img',0)->outertext = ''; echo $div;*/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.9 | Generation time: 0.04 |
proxy
|
phpinfo
|
Settings