$url = "https://www.bitmex.com/api/v1/instrument/active";
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
//for debug only!
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$resp = curl_exec($curl);
curl_close($curl);
var_dump($resp);
echo (int) ( (0.1+0.7) * 10 ); // выводит 7!
public function resize($width, $height) {
$new_image = imagecreatetruecolor($width, $height);
imagecopyresampled($new_image, $this->image, 0, 0, 0, 0, $width, $height, $this->width, $this->height);
$this->image = $new_image;
}
$image = new SimpleImage($filename);
$image->resize(240, 220);
function redirect($page)
{
header('Location: ' . URL_ROOT . '/' . $page);
}
onclick="d_KDK_djw({if $get_id_usr}{$get_id_usr}{/if},'{$live_site}'); "
case 'mess_dsjkfsde':
require_once $config_abs_path."/classes/users.php";
$id = get_numeric_only("id");
$delete_all_mess=new users();
$delete_all_mess->delete_all_messages_to($id);
break;
header("Location: http://www.example.com/");
$query = "SELECT COUNT(*) as num FROM $table WHERE user_id =' ".$_SESSION['id']."'";
$page = mysql_escape_string($_GET['page']);
$query1 = "SELECT * FROM $table ORDER BY idmes DESC LIMIT $start, $limit ";
SELECT id, name, affiliated_by FROM Users WHERE affiliated_by !=null ORDER BY affiliated_by