i am trying to use some sms gateway and it require me to use curl to post a message to their server. How do i set up curl on windows and linux server? I guess curl is some php library? Which files do i need to include? Where will i get those files?
id it alredy installed on linux server?
2009-09-20 19:47:21
+4
A:
cURL can be used as a PHP module, but you can also install it as a regular command line application and execute curl commands as separate processes
If you want to test your server support for either of these, try this:
<?php
//test for extension
if (extension_loaded("curl"))
{
echo "cURL extension is loaded<br>";
}
else
{
echo "cURL extension is not available<br>";
}
//test for command line app
echo "cURL command line version:<br><pre>";
echo `curl --version`;
echo "</pre>";
?>
Paul Dixon
2009-09-20 19:46:50
i have a acccount with some hosting company where i host my site.How wil i come to know if curl is installed or not? Is it already available on my server?How can i make out
2009-09-20 19:51:55
@unknown upload a script that says <?PHP phpinfo(); ?>, load it in the browser, and search the output for "curl" -- if it's installed, you'll find a section devoted to its configuration
timdev
2009-09-21 01:10:07