The get_resource_type() function returns the type of a resource.
string get_resource_type ( resource $handle )
If the type is not identified by this function, the return value will be the string Unknown.
This function will return null and generate an error if handle is not a resource.