updated readme

This commit is contained in:
Raffael Sahli 2018-08-16 13:32:32 +02:00 committed by Robin Appelman
commit 0a9b035800

View file

@ -102,6 +102,15 @@ fwrite($fh, 'bar');
fclose($fh); fclose($fh);
``` ```
**Note**: write() will truncate your file to 0bytes. You may open a writeable stream with append() which will point
the cursor to the end of the file or create it if it does not exists yet. (append() is only compatible with libsmbclient-php)
```php
$fh = $share->append('test.txt');
fwrite($fh, 'bar');
fclose($fh);
```
### Using notify ### Using notify
```php ```php