未安装PHP CURL库,是否有任何PHP等效程序?
有PHP的旋度模拟器吗?我的主机没有启用CURL。我寻找一些与CURL具有相同命令的PHP等价物。你知道这样的解决办法吗?或者我必须改变密码?如何在不使用CURL的情况下通过文件上传进行POST API调用 我需要这个等价物:未安装PHP CURL库,是否有任何PHP等效程序?,php,curl,Php,Curl,有PHP的旋度模拟器吗?我的主机没有启用CURL。我寻找一些与CURL具有相同命令的PHP等价物。你知道这样的解决办法吗?或者我必须改变密码?如何在不使用CURL的情况下通过文件上传进行POST API调用 我需要这个等价物: $file_name_with_full_path = dirname(__FILE__) . "/temp/" . $sFileName; $post = array( 'ApiKey' => '6548dcsdf'
$file_name_with_full_path = dirname(__FILE__) . "/temp/" . $sFileName;
$post = array( 'ApiKey' => '6548dcsdf'
,'File' => '@'.$file_name_with_full_path
,'WorksheetIndex' => 1
,'WorksheetActive' => 'True'
,'WorksheetName' => 'Rechnung'
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"https://do.convertapi.com/Excel2Pdf");
curl_setopt($ch, CURLOPT_POST,1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_BINARYTRANSFER,1);
$result = curl_exec( $ch );
curl_close( $ch );
我从未找到使用相同命令的curl等价物。 使用
file\u get\u contents
,您可以轻松实现自己的上传功能
例如:
我从未找到使用相同命令的curl等价物。 使用
file\u get\u contents
,您可以轻松实现自己的上传功能
例如: