PHP function chown()

Availability in PHP 4.0

Changes file owner

Parameters

Parameter Data type Default value Note
$filename string not Path to the file.
$user mixed not A user name or number.

Return values

bool

Returns true on success, otherwise false on failure.

Other resources

Official chown documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.