![]() |
Показаны 6 сообщений на этой странице |
Форум сетевых администраторов (http://netadmin.ws/forum/index.php)
- PHP (http://netadmin.ws/forum/forumdisplay.php?forumid=6)
-- Как прочесть Header? (http://netadmin.ws/forum/showthread.php?threadid=5558)
Как прочесть Header?
в документации на Ð_НÐ_ нашел такую функцию file_get_wrapper_data но она отказывается работать Fatal error: Call to undefined function: file_get_wrapper_data()... может есть другие способы прочитать хэдер сайта???
Fasco,
Хэдер сайта? Может хэдер файла? Вообще можно попробовать через сокет сделать HEAD запрос и получить желаемое.
Смысл такой... есть сайт на хостинге... если открывать через сокет то конектит к хосту хостера а не к тому сайту что я хочу...
Странно..
PHP Function List
Sorry, but the function file_get_wrapper_data is not in the online manual. Perhaps you misspelled it, or it is a relatively new function that hasn't made it into the online documentation yet. The following are the 10 functions which seem to be closest in spelling to file_get_wrapper_data (really good matches are in bold). Perhaps you were looking for one of these:
...
Скажи пожалуйста где ты нашел такую функцию и что вообще имелось ввиду? Может HTTP заголовок клиента?
SCHIZO добавил 20-05-2003 в 16:25:04:
может имелось ввиду следующее..
stream_get_wrappers
(PHP 5 CVS only)
stream_get_wrappers -- Retrieve list of registered streams
Description
array stream_get_wrappers ( void)
Returns an indexed array containing the name of all stream wrappers available on the running system.
See also stream_register_wrapper()
__________________
FAQ OFF
взято из последней документации на Ð_НÐ_ 4.3.0 (причем всё тестилось на 4.3.1)
file_get_wrapper_data
file_get_wrapper_data -- Retrieves header/meta data from "wrapped" file pointers
Description
mixed file_get_wrapper_data ( int fp)
This function returns header or meta data from files opened with fopen(). This is useful to return the response headers for HTTP connections, or some other statistics for other resources.
The format of the returned data is deliberately undocumented at this time, and depends on which wrapper(s) were used to open the file.
Note: This function was introduced in PHP 4.3.0.
А у меня в документациия вот такое написано:
quote:Словом, нужен PHP 4 CVS онли.
file_get_wrapper_data
Retrieves header/meta data from "wrapped" file pointers (PHP 4 CVS only)
mixed file_get_wrapper_data(int fp)
Note: This function was introduced in PHP 4.3.0.
| Формат времени GMT. Текущее время 02:43. | Показаны 6 сообщений на этой странице |
Powered by: vBulletin Version 2.2.4
Copyright © Jelsoft Enterprises Limited 2000, 2001.