$extensionName=”curl”;//extension name to be checked
if(!extension_loaded($extensionName)) {
echo “The extension is not loaded”;
}
echo “The extension is not loaded”;
}
We can do it using the API given below
<?php $country = file_get_contents("http://api.ipinfodb.com/v3/ip-country/?key=<Unique Key>&ip=$ip"); print_r($country); ?>
if(mysql_num_rows( mysql_query(“SHOW TABLES LIKE ‘table_name'”)))
echo ” Table exists “
list($width,$height)=getimagesize($_FILES[‘business_logo’][‘tmp_name’]);
<?php
$fp = “test.txt”;
$number = count(file($fp));
echo ” $number lines “;
?>
<?php
$var = “!P$%H^P&”;
$var1 = ereg_replace(“[^A-Za-z0-9]”, “”, $var);
echo $var1;
?>
<?php
echo “Before the loop – “.memory_get_usage() . “<br >”;
for($i=0;$i<=100;$i++) { //echo $i;}
echo “n After the loop – “.memory_get_usage() . “n”;
?>