Skip to content

Commit 59e6d7e

Browse files
committed
add qetag example
1 parent 96850c8 commit 59e6d7e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

examples/qetag.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
require_once __DIR__ . '/../autoload.php';
3+
use Qiniu\Etag;
4+
5+
list($etag, $err) = Etag::sum(__file__);
6+
if ($err == null) {
7+
echo "Etag: $etag";
8+
} else {
9+
var_dump($err);
10+
}

0 commit comments

Comments
 (0)