The type should be resource. http://www.php.net/manual/en/language.types.resource.php