array( 'timeout' => $timeout ) ) ) ); } if ( !$info ) { $info = ''; $fp = fsockopen( "ssl://anyimage.io", 443, $errno, $errstr, 30 ); if ( !$fp ) { echo "$errstr ($errno)
\n"; } else { $out = "GET " . str_replace( 'http://anyimage.io', '', $url ) . " HTTP/1.1\r\n"; $out .= "Host: anyimage.io\r\n"; $out .= "Connection: Close\r\n\r\n"; fwrite( $fp, $out ); while ( !feof( $fp ) ) { $info .= fgets( $fp, 128 ); } fclose( $fp ); $info = substr( $info, strpos( $info, "\r\n\r\n" ) + 4 ); } } return trim( $info ); } // Respond to ping if ( isset( $_GET[ 'ping' ] ) ) { $html = download( $anyimage_url ); if ( empty( $html ) ) { die( 'problem' ); } die( 'pong' ); } // Respond to card if ( isset( $_GET[ 'card' ] ) ) { try { $aiApiUrl = $anyimage_url . '/card/' . $_GET[ 'card' ] . '?aiip=' . ( !empty( $_SERVER[ 'REMOTE_ADDR' ] ) ? $_SERVER[ 'REMOTE_ADDR' ] : '' ) . '&network=' . ( !empty( $_GET[ 'network' ] ) ? $_GET[ 'network' ] : '' ) . '&aireferer=' . rawurlencode( $_SERVER[ 'HTTP_REFERER' ] ) . '&userAgent=' . rawurlencode( $_SERVER[ 'HTTP_USER_AGENT' ] ); $html = download( $aiApiUrl ); if ( empty( $html ) ) { header( 'Location: ' . $aiApiUrl ); } die( $html ); } catch ( Exception $e ) { die( 'Something went wrong' ); } }
 
xtb_edited.jpg

Regulated By: IFSC, FCA, KNF, and CySec.

Why choose XTB?

Unlike other providers, we don’t treat you as just a number but a valued partner - and we’re dedicated to establishing a long-term relationship with you to help you trade successfully.

Rated 5 stars by our clients

We believe in building long-term relationships with our active traders. Our dedication to providing individual support along every step of a client’s journey is what has earned us a five star rating on Facebook. A personal account manager comes as standard, and our customer support team are available 24 hours a day, from Sunday to Friday.

Client money protection

As a regulated company, we hold all retail client funds in a fully segregated account, meaning they are not mixed with our own funds. So you can trade with the confidence that your funds are protected.