Changeset 938 for trunk/Common/Global.php
- Timestamp:
- Jul 30, 2022, 12:10:48 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Global.php
r903 r938 382 382 return call_user_func_array('pack', array_merge(array($v), (array)$a)); 383 383 } 384 385 function file_get_contents_curl(string $Url) 386 { 387 $Ch = curl_init(); 388 389 curl_setopt($Ch, CURLOPT_AUTOREFERER, TRUE); 390 curl_setopt($Ch, CURLOPT_HEADER, 0); 391 curl_setopt($Ch, CURLOPT_RETURNTRANSFER, 1); 392 curl_setopt($Ch, CURLOPT_URL, $Url); 393 curl_setopt($Ch, CURLOPT_FOLLOWLOCATION, TRUE); 394 395 $Data = curl_exec($Ch); 396 curl_close($Ch); 397 return $Data; 398 }
Note:
See TracChangeset
for help on using the changeset viewer.