| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | protected function remotePointer(IConnectionParams $params) |
||
| 25 | { |
||
| 26 | // Make the request to the server |
||
| 27 | // If possible, securely post using HTTPS, your PHP server will need to be SSL enabled |
||
| 28 | if (!$filePointer = socket_create(AF_INET, SOCK_DGRAM, $params->getProtocolVersion())) { |
||
| 29 | $errorCode = socket_last_error(); |
||
| 30 | $errorMessage = socket_strerror($errorCode); |
||
| 31 | |||
| 32 | throw new RequestException($this->getRRLang()->rrSocketCannotConnect2($errorMessage), $errorCode); |
||
| 33 | } |
||
| 34 | return $filePointer; |
||
|
|
|||
| 35 | } |
||
| 37 |