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

search for in the

eio_chown> <eio_cancel
[edit] Last updated: Sat, 18 May 2013

view this page in

eio_chmod

(PECL eio >= 0.0.1dev)

eio_chmodChange file/direcrory permissions.

Descrição

resource eio_chmod ( string $path , int $mode [, int $pri = EIO_PRI_DEFAULT [, callable $callback = NULL [, mixed $data = NULL ]]] )

eio_chmod() changes file, or direcrory permissions. The new permissions are specified by mode.

Parâmetros

path

Path to the target file or directory

Aviso

Evite caminhos relativos

mode

The new permissions. E.g. 0644.

pri

A prioridade de requisição: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX, ou NULL. Se NULL for passado, pri será internamente configurado para EIO_PRI_DEFAULT.

callback

A função callback é chamada quando a requisição for finalizada. Ela deve seguir o seguinte protótipo:

void callback($data, $result);
$data são dados customizados passados para a requisição. $result contém resultados específicas à requisição; basicamente, o valor retornado pela chamada de sistema correspondente.

data

Arbitrary variable passed to callback.

Valor Retornado

eio_chmod() returns request resource on success or FALSE on error.

Veja Também

  • eio_chown


add a note add a note User Contributed Notes eio_chmod - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites