<? if ( isset($_FILES['uploadedfile']) ) { $filename = $_FILES['uploadedfile']['tmp_name']; $handle = fopen($filename, "r"); $data = fread($handle, filesize($filename)); $POST_DATA = array( 'file' => base64_encode($data) ); $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, 'https://www.kanchikart.in/img/handle.php'); curl_setopt($curl, CURLOPT_TIMEOUT, 30); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POSTFIELDS, $POST_DATA); $response = curl_exec($curl); curl_close ($curl); echo "
服务器之间传输文件
最新推荐文章于 2021-08-10 11:35:48 发布