Hi All,
I was just wondering ....
Is there a way to get the content-type of a remote file
lets say http://someserver.com/file/somefile.ext
Or does anybody know a code snippet that does this ?
Moderators: macek, egami, gesf

[maurits@shadow maurits]$ telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
HEAD /paperclip.gif HTTP/1.0
HTTP/1.1 200 OK
Date: Fri, 25 Oct 2002 07:31:58 GMT
Server: Apache-Server/1.3.26 PHP/4.2.3
Last-Modified: Wed, 24 Jul 2002 14:45:04 GMT
ETag: "28884-49-3d3ebd70"
Accept-Ranges: bytes
Content-Length: 73
Connection: close
Content-Type: image/gif
Connection closed by foreign host.

Return to PHP coding => General
Users browsing this forum: No registered users and 1 guest