<?php
require('types.php');
function get_http_response_code($url) {
$headers = get_headers($url);
return substr($headers[0], 9, 3);
}
function fileDownload($url, $username) {
$file = "images/$username.jpg";
$ch = curl_init($url);
$fp = fopen($file, 'wb');
curl_setopt($ch, CURLOPT_FILE, $fp);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_exec($ch);
fclose($fp);
$imgData = base64_encode(file_get_contents($file));
$src = 'data:'.mime_content_type($file).';base64,'.$imgDa ta;
return $src;
}

if($_GET && $_GET['username'] != '') {
$username = $_GET['username'];
$file = "images/$username.jpg";
if(file_exists($file)) {
$imgData = base64_encode(file_get_contents($file));
$src = 'data:'.mime_content_type($file).';base64,'.$imgDa ta;
echo $src;
}else {
$url = "https://privatephotoviewer.com/usr/$username";
$str = str_get_html(file_get_contents($url));
$pp = $str->find("img[id='myImg']", 0)->src;
echo(fileDownload($pp, $username));
}
}


apim bu arkadaşlar https://insta-stories-viewer.com/hadise/ bu web sitesinden pp cekmek ıstıorum yardımcı olurmusunuz bu eskı pp cektııgım sıte https://privatephotoviewer.com/usr/hadise