I
I
ItsOlegDm2021-07-15 00:44:42
PHP
ItsOlegDm, 2021-07-15 00:44:42

Why doesn't the thumbnail appear on the page?

Everything used to work fine, but recently it stopped. Not sure why or how...

header('Content-type: image/jpeg');
        print_r(file_get_contents('https://cdn.discordapp.com/attachments/823254352025747466/823270819102195782/kartinka.jpg'));


Instead of a picture on the page, a stupidly white square is visible ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shamanov, 2021-07-15
@SilenceOfWinter

check if the external link opens at all

print_r(get_headers('https://cdn.discordapp.com/attachments/823254352025747466/823270819102195782/kartinka.jpg', true));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question