I am trying to use cURL. Below is my syntax
$res = `/usr/bin/curl -m 120 -d "$data" '$url' `;
My ISP have cURL installed and the path to it is `/usr/bin/curl. The above syntax does not seem to work, any suggestions would be greatly appreciated.
Thank you
You are using single quotes around the $url, so that won't be expanded; the literal string '$url' will be passed. I think that is your main problem.
A second problem might be that the double quotes around $data are being stripped out... not sure, you may need to escape them. And of course, make sure that your $data is "url-encoded".
Shawn