file_get_contents carries cookies to obtain data and deploys it to the server, which fails.
夜幕
夜幕 2021-06-08 17:53:57
0
1
866

$url = 'https://www.ssldun.cn/clientarea.php?action=productdetails&id=2&modop=custom&a=DownloadCert';$con = 'WHMCSy551iLvnhYt7=382h2f4u8eo25oiovc9p2ffsu3';$rand = rand(10000,99999) ;//Random number $filename= time().$rand.'.zip';//Send a request to get the name of the compressed package. Need to delete//Send a request with cookie to get the contents of the compressed package. $opts = array('http' => array('header'=> 'Cookie:'.@$con.''));$context = stream_context_create($opts);$contents = file_get_contents($url, false, $context);var_dump( $contents);

That is, when this code is deployed on the server, the file cannot be obtained

夜幕
夜幕

reply all(1)
?小虾米

What is the return result? Is there any error message?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template