Closed amhoho closed 3 years ago
require __DIR__ . '/../vendor/autoload.php';
$output = __DIR__ . '/output.png';
$url = 'https://github.githubassets.com/images/icons/ie-notice.png';
file_put_contents($output, QL\QueryList::get($url)->getHtml());
// 或
file_put_contents($output, file_get_contents($url));
比如