PHP: Check if Remote Image File Exists
PHP: Check if Remote Image File Exists: a task in Terminal-Lego-15k (Harbor dataset). You need to write a PHP script that correctly checks whether a remote image file exists on a web server (CDN). The original code has a bug where file exists() doesn't work properly with remote URLs.
The task
You need to write a PHP script that correctly checks whether a remote image file exists on a web server (CDN). The original code has a bug where `file_exists()` doesn't work properly with remote URLs.
Part of PrimeIntellect/Terminal-Lego-15k.