1
I have a question and a problem. Good is the following with Curl I login beauty so far everything well.. but I need to get some information inside the html:
<span id="Number">12345678993</span>
<span id="holderName">RAFAELA VERCOSA MARIANO</span>
<span id="expirationDate">11/2019</span>
The function I’m using is:
function pegar_oneclick(){
$nome = '';
$html = str_get_html($this->http_response);
foreach($html->getElementById('holderName') as $element){
$text = $element->plaintext;
$text = str_replace(array("\r", "\n", "\t"), ' ', $text);
$nome .= str_replace(' ', '', $text);
}
return $nome;
}
I want you to return only the Number: value, holderName: RAFAELA VERCOSA MARIANO and expirationDate, I don’t want anything ready just an orientation of how I should do it.
Good evening friend, I followed your guidance and the same could not see http://pastebin.com/jn0swJXz
– Bruno henrique
@Brunohenrique The url has to be https and not http. The code doesn’t work because there is no field Number, holderName or expirationDate. Look at the source code of the page and see!
– stderr
See here, https://privnote.com/n/ohudrgrunbyqeuif/#rrrvsdyaubreyqok
– Bruno henrique