Php 旋度替代;cURL不受支持,我将无法启用它

Php 旋度替代;cURL不受支持,我将无法启用它,php,html,http,curl,paypal,Php,Html,Http,Curl,Paypal,我已经使用WAMP服务器在家完成了我的大学项目。我在处理paypal付款时使用cUrl命令。现在我将项目复制到大学服务器上,我发现cURL不受支持。这个代码有解决办法吗 // Set the curl parameters. $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $API_Endpoint); curl_setopt($ch, CURLOPT_VERBOSE, 1); // Turn off the server

我已经使用WAMP服务器在家完成了我的大学项目。我在处理paypal付款时使用cUrl命令。现在我将项目复制到大学服务器上,我发现cURL不受支持。这个代码有解决办法吗

  // Set the curl parameters.
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $API_Endpoint);
  curl_setopt($ch, CURLOPT_VERBOSE, 1);

  // Turn off the server and peer verification (TrustManager Concept).
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);

  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_POST, 1);

  // Set the API operation, version, and API signature in the request.
  $nvpreq = "METHOD=$methodName_&VERSION=$version&PWD=$API_Password&USER=$API_UserName&SIGNATURE=$API_Signature$nvpStr_";

  // Set the request as a POST FIELD for curl.
  curl_setopt($ch, CURLOPT_POSTFIELDS, $nvpreq);

  // Get response from the server.
  $httpResponse = curl_exec($ch);

服务器上是否启用了fopen包装器?我根本无法控制服务器。我只能上传文件到域名听Dagon说什么。如果您有fopen包装器,您可以在fopen中指定URL,并将URL视为文件。。。实际上,试试这个b/c,它可能会解决您的问题(而且比您已有的要容易得多)打开或文件\u get\u conents除非OP似乎在使用
POST
而不是
get