mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-04 01:34:07 +02:00
readme
This commit is contained in:
parent
7e49f35ae3
commit
04315265fd
1 changed files with 4 additions and 2 deletions
|
|
@ -102,8 +102,10 @@ 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
|
**Note**: write() will truncate your file to 0bytes and sets the cursor to the beginning. You may set the optional flag `truncate` to `false` to overcome this.
|
||||||
the cursor to the end of the file or create it if it does not exists yet. (append() is only compatible with libsmbclient-php)
|
You may also use append() which will set
|
||||||
|
the cursor to the end of the file or create it if it does not exist yet. (append() is only compatible with libsmbclient-php)
|
||||||
|
|
||||||
```php
|
```php
|
||||||
$fh = $share->append('test.txt');
|
$fh = $share->append('test.txt');
|
||||||
fwrite($fh, 'bar');
|
fwrite($fh, 'bar');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue