check if url exists in php [duplicate] March 25, 2023 by Tarik if (!file_exists('http://example.com/images/thumbnail_1286954822.jpg')) { $filefound = '0'; }