П О Р Т А Л                            
С Е Т Е В Ы Х                          
П Р О Е К Т О В                        
  
                                                 
Главная

О проекте

Web-мастеру
     HTML & JavaScript
     SSI
     Perl
     PHP
     XML & XSLT
     Unix Shell

MySQL

Безопасность

Хостинг

Другое







Самое читаемое:

Учебник PHP - "Для Чайника".
Просмотров 98157 раз(а).

Иллюстрированный самоучитель по созданию сайтов.
Просмотров 29071 раз(а).

Учебник HTML.
Просмотров 56195 раз(а).

Руководство по PHP5.
Просмотров 25935 раз(а).

Хостинг через призму DNS.
Просмотров 30464 раз(а).

Подборка текстов стандартных документов.
Просмотров 28973 раз(а).

Учебник PHP - Самоучитель
Просмотров 33721 раз(а).

Документация на MySQL (учебник & справочное руководство)
Просмотров 34981 раз(а).

Внешние атаки...
Просмотров 26948 раз(а).

Учебник PHP.
Просмотров 22780 раз(а).

SSI в примерах.
Просмотров 17853 раз(а).



 
 



Руководство по PHP
Пред. След.

get_resource_type

(PHP 4 >= 4.0.2, PHP 5)

get_resource_type --  Returns the resource type

Описание

string get_resource_type ( resource handle )

This function gets the type of the given resource.

Список параметров

handle

The evaluated resource handle.

Возвращаемые значения

If the given handle is a resource, this function will return a string representing its type. If the type is not identified by this function, the return value will be the string Unknown.

This function will return FALSE and generate an error if handle is not a resource.

Примеры

Пример 1. get_resource_type() example

<?php
// prints: mysql link
$c = mysql_connect();
echo
get_resource_type($c) . "\n";

// prints: file
$fp = fopen("foo", "w");
echo
get_resource_type($fp) . "\n";

// prints: domxml document
$doc = new_xmldoc("1.0");
echo
get_resource_type($doc->doc) . "\n";
?>



 





Copyright © 2005-2011 Project.Net.Ru