login xuj password pizda ch curl_init curl_setopt_array ch array CURLO

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
<?
$login = 'xuj';
$password = 'pizda';
$ch = curl_init();
curl_setopt_array($ch, array(
CURLOPT_RETURNTRANSFER => true,
CURLOPT_URL => 'http://spaces.ru/mysite/?name=' . $login . '&password=' . $password
));
$res = curl_exec($ch);
echo $res;