<a href="market://details?id=" + appPackageName > Download this App </a>
I'm web developer and I put here some of my experiences.
<a href="market://details?id=" + appPackageName > Download this App </a>
Math.pow()
function returns the base
to the exponent
power, that is, base exponent
.Math.pow(base, exponent)
base
exponent
base
.pow()
is a static method of Math
, you always use it as Math.pow()
, rather than as a method of aMath
object you created (Math
has no constructor).Here I had to modify like this:
php
//step1
$cSession = curl_init();
//step2
curl_setopt($cSession,CURLOPT_URL,"http://www.google.com/search?q=curl");
curl_setopt($cSession,CURLOPT_RETURNTRANSFER,true);
curl_setopt($cSession,CURLOPT_HEADER, false);
//step3
$result=curl_exec($cSession);
//step4
curl_close($cSession);
//step5
echo $result;
?>
public function curlCall($apiurl, $auth, $rflag)
{
$ch = curl_init($apiurl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
if($auth == 'auth') {
curl_setopt($ch, CURLOPT_USERPWD, "passw:passw");
} else {
curl_setopt($ch, CURLOPT_USERPWD, "ss:ss1");
}
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$dt = curl_exec($ch);
curl_close($ch);
if($rflag != 1) {
$dt = json_decode($dt,true);
}
return $dt;
}
http://php.net/manual/en/ref.curl.php
http://www.startutorial.com/articles/view/php-curl