get_resource_type
    (PHP 4 >= 4.0.2)
get_resource_type --       Returns the resource type     
Description
string 
get_resource_type ( resource handle)
     This function returns a string representing the type of the      resource passed to it. If the paramater is not a valid      resource, it generates an error.