<?php
$output = file_get_contents(‘http://localhost:8983/solr/select?q=video&wt=php’);
eval(“$resultArray = ” . $output . “;”);
echo “<pre>”;print_r($resultArray);
?>
<?php
$output = file_get_contents(‘http://localhost:8983/solr/select?q=video&wt=php’);
eval(“$resultArray = ” . $output . “;”);
echo “<pre>”;print_r($resultArray);
?>
Example :
<?php
$url = “www.example.com”; // Desired URL
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_POST, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$returned = curl_exec($ch);
curl_close ($ch);
echo $returned;
?>
<?php
java_last_exception_get();
?>
<?php
java_last_exception_clear();
?>
<?php exec(“java -jar filename.jar arguments”,$output); ?>
Also called a permanent cookie, or a stored cookie, a cookie that is stored on a user s hard drive until it expires (persistent cookies are set with expiration dates) or until the user deletes the cookie.
Persistent cookies help websites remember your information and settings when you visit them in the future. This result in faster and more convenient access since, for example, you don’t have to login again.
Besides authentication, other website features made possible by persistent cookies include: language selection, theme selection, menu preferences, internal site bookmarks or favorites, among many others. On your first visit, the website is presented in default mode. During your visit, you select your preferences and these preferences are remembered, through the use of the persistent cookie, the next time you visit the site.
<?php
mysql_list_dbs();
Example :
$connection=mysql_connect(“localhost”,”root”,”password”);
$dataBases = mysql_list_dbs($connection);
while ($db = mysql_fetch_object($dataBases)) {
echo $db->Database . “<br />”;
}
?>
<?php
mysql_affected_rows();
?>