File manager - Edit - /home/cipherteam/htdocs/cipherteam.in/API/Finance/Demo.php
Back
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://ticker.finology.in/company/ITC', 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', CURLOPT_HTTPHEADER => array( 'x-requested-with: XMLHttpRequest', 'Cookie: ASP.NET_SessionId=fejzmuj0knbewepynnne5ydu' ), )); $response = curl_exec($curl); curl_close($curl); echo $response; /*include_once("simple_html_dom.php"); $html = file_get_html("https://ticker.finology.in/GetSectorCompList.ashx?indcode=16"); echo $html; /*$html = file_get_html("https://ticker.finology.in/IPO/listed"); $divs = $html->find('div[class=col-12 col-md-4]'); foreach($divs as $div) { $img = $div->find('img',0)->src; echo $img.'<br>'; $name = $div->find('a',0)->plaintext; echo $name.'<br>'; $ipoprice = $div->find('p',0)->plaintext; echo $ipoprice.'<br>'; $listingPrice = $div->find('p',1)->plaintext; echo $listingPrice.'<br>'; $listingGain = $div->find('p',2)->plaintext; echo $listingGain.'<br>'; $listingDate = $div->find('p',3)->plaintext; echo $listingDate.'<br>'; $cmp = $div->find('p',4)->plaintext; echo $cmp.'<br>'; $currentReturn = $div->find('p',5)->plaintext; echo $currentReturn.'<br>'; $rhp = $div->find('a',1)->href; echo $rhp.'<br>'; $drhp = $div->find('a',2)->href; echo $drhp.'<br>'; }*/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.9 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings