mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
add info about basic connection testing using the example script
This commit is contained in:
parent
0cbfd0872d
commit
2280570d28
2 changed files with 21 additions and 3 deletions
12
README.md
12
README.md
|
|
@ -150,3 +150,15 @@ $share->notify('')->listen(function (\Icewind\SMB\Change $change) {
|
|||
echo $change->getCode() . ': ' . $change->getPath() . "\n";
|
||||
});
|
||||
```
|
||||
|
||||
## Testing SMB
|
||||
|
||||
Use the following steps to check if the library can connect to your SMB share.
|
||||
|
||||
1. Clone this repository or download the source as [zip](https://github.com/icewind1991/SMB/archive/master.zip)
|
||||
2. Make sure [composer](https://getcomposer.org/) is installed
|
||||
3. Run `composer install` in the root of the repository
|
||||
4. Edit `example.php` with the relevant settings for your share.
|
||||
5. Run `php example.php`
|
||||
|
||||
If everything works correctly then the contents of the share should be outputted.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue