8000 Add README section on Codebird::setUseCurl · fsanchezro/codebird-php@444609d · GitHub
[go: up one dir, main page]

Skip to content

Commit 444609d

Browse files
committed
Add README section on Codebird::setUseCurl
1 parent 85e6bed commit 444609d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,3 +461,15 @@ If you don't specify the timeout, codebird uses these values:
461461

462462
- connection time = 5000 ms = 5 s
463463
- timeout = 2000 ms = 2 s
464+
465+
### …disable cURL?
466+
467+
Codebird automatically detects 5EC1 whether you have the PHP cURL extension enabled.
468+
If not, the library will try to connect to Twitter via socket.
469+
For this to work, the PHP setting `allow_url_fopen` must be enabled.
470+
471+
You may also manually disable cURL. Use the following call:
472+
473+
```php
474+
$cb->setUseCurl(false);
475+
```

0 commit comments

Comments
 (0)
0