downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

streamWrapper::stream_stat> <streamWrapper::stream_seek
Last updated: Fri, 14 Aug 2009

view this page in

streamWrapper::stream_set_option

(PHP 5 >= 5.3.0)

streamWrapper::stream_set_optionChange les options du flux

Description

public bool streamWrapper::stream_set_option ( int $option , int $arg1 , int $arg2 )

Cette méthode est appelée pour modifier les options du flux.

Liste de paramètres

option

Une des constantes parmi :

arg1

Si option vaut

  • STREAM_OPTION_BLOCKING : mode bloquant demandé (1 signifie bloquant, 0 non-bloquant).
  • STREAM_OPTION_READ_TIMEOUT : le délai d'expiration en secondes.
  • STREAM_OPTION_WRITE_BUFFER : le mode de buffer (STREAM_BUFFER_NONE ou STREAM_BUFFER_FULL).

arg2

Si option vaut

  • STREAM_OPTION_BLOCKING : cette option n'est pas active.
  • STREAM_OPTION_READ_TIMEOUT : le délai d'expiration en microsecondes.
  • STREAM_OPTION_WRITE_BUFFER : la taille du buffer demandé.

Valeurs de retour

Cette fonction retourne TRUE en cas de succès, FALSE en cas d'échec. Si option n'est pas implémentée, FALSE doit être retourné.

Voir aussi



add a note add a note User Contributed Notes
streamWrapper::stream_set_option
There are no user contributed notes for this page.

streamWrapper::stream_stat> <streamWrapper::stream_seek
Last updated: Fri, 14 Aug 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites