response->upload_url); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_VERBOSE, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, array("file" => "@test.mp3")); $r = json_decode(curl_exec($ch)); var_dump($r); curl_close($ch); $r = vk("audio.save", array( "server" => $r->server, "audio" => $r->audio, "hash" => $r->hash, "artist" => "test artist", "title" => "test title" )); var_dump($r); ?>