Skip to content

Commit cdb11e1

Browse files
authored
Update README.md
1 parent f300040 commit cdb11e1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,11 @@ try {
4545
```php
4646
<?php
4747

48-
copy('https://tron.phar.fun/tron.phar','trx.phar');
48+
$path = realpath(__DIR__.DIRECTORY_SEPARATOR.'trx.phar');
4949

50-
require_once './trx.phar';
50+
if(file_exists($path) === false) copy('https://tron.phar.fun/tron.phar',$path);
51+
52+
require_once $path;
5153

5254
use Tak\Tron\API;
5355

0 commit comments

Comments
 (0)