Get Content-Type of a remote file
| From: | Lasar Liepins | Date: | Sun, 04 Nov 2001 15:03:26 +0000 |
| Subject: | Get Content-Type of a remote file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-73397@lists.php.net to get a copy of this message | ||
Hi.
Is it possible to check the Content-type header of a remote file? If so, how? I want to fetch a file using file(), but I want to make sure it is an HTML file first.
Thanks,
_ Lasar