for ($i=1; $i < 30; $i++) {
$image_number = sprintf('%02d', $i);
$file = 'https://carmanager.be/carimages/L/' . $car->license . '_' . $image_number . '.jpg';
$file_headers = @get_headers($file);
if($file_headers[0] == 'HTTP/1.1 404 Not Found') {
$exists = false;
}
else {
$exists = true;
}
print 'hier ' . $exists . ' ' . $file . '<br>';
}
?>
What exactly isn’t working?
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.