php curl lib to curl command line URGENT


i have a simple script that using for XML post to SSL site.

the script was coded by libcurl(php) lines but the problem cause the hosting provider that my client's site hosted is not supporting libcurl and SSL.

I found if we use CURL Command line example: exec('curl -d $data $sslurl') working perfectly

so, all what i want that you epxert guys who have strong skill with CURL command to covert just some lines of my php curl code to exec(CURL COMMAND LINE) code.

please check all the script bellow:

$PHP_ApplicationPath = "";

//$PHP_ApplicationPath = "";

//Merchant Connection Ticket

$PHP_ConnectionTicket = '############';

//Application Login - From Service Provider Account (NOT Merchant Account)

$PHP_ApplicationLogin = "########";

//Application ID

$PHP_AppID = "########";

//SSL Cert

$PHP_Cert = '##########';



//This is the request that uses the merchant ticket to get the session ticket.

$PHP_QBMSXML[0] = '<?xml version="1.0" ?>

<?qbmsxml version="2.0"?>










function FNC_do_call($PHP_URL, $PHP_Request, $PHP_Cert) {

$PHP_Header[] = "Content-type: application/x-qbmsxml";

$PHP_Header[] = "Content-length: ".strlen($PHP_Request);

$handle = fopen("tmp/curlerrors.txt", "w");

$ch = curl_init();

curl_setopt($ch, CURLOPT_POST, 1);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');

curl_setopt($ch, CURLOPT_URL, $PHP_URL);

curl_setopt($ch, CURLOPT_TIMEOUT, 1);

curl_setopt($ch, CURLOPT_HTTPHEADER, $PHP_Header);

curl_setopt($ch, CURLOPT_POSTFIELDS, $PHP_Request);

curl_setopt($ch, CURLOPT_STDERR, $handle);

curl_setopt($ch, CURLOPT_VERBOSE, 1);

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);

curl_setopt($ch, CURLOPT_SSLCERT, $PHP_Cert);

$data = curl_exec($ch);

if (curl_errno($ch)) {

die("Error = ".curl_error($ch));

} else {



return $data;


ONLY EXPERT GUY who can get the simple task done quickly with your skill around 10 min, bid please.

sorry if my EN cause you problem but i will pay $20 and good review for the right provider

Habilidades: Linux, Perl, PHP, XML

Veja mais: curl command line examples, php curl command, php curl command line, php curl commands, session php, php service, php id, pay php, n. y. post, function - 1 to 1, cgi review, curl lib, dth xml curl, fnc_do_call, example curl xml post linux, curl command line php session, site command curl, perl curl_setopt, unix curl session, curl command php, exec curl, post xml curl command line, php command curl, exec php curl commands, libcurl post xml command line

Acerca do Empregador:
( 0 comentários ) Ha Noi, Vietnam

ID do Projeto: #176033

3 freelancers are bidding on average $30 for this job


I will do this for 20. Thanks.

$30 USD em 1 dia
(3 Comentários)

I'm ready to provide you with php code using proper command line for Unix-like OS. For 20$. (this value doesn't fit in $30-100 budget range)

$30 USD in 0 dias
(0 Comentários)

I can do it [url removed, login to view] check PMB.

$30 USD em 1 dia
(0 Comentários)