tags:

views:

844

answers:

2

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?

+1  A: 

All you need to know is here.

Linus Sjögren
id it alredy installed on linux server?
+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
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
@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