<?php
echo Mage::helper(‘catalog/product’)->getProductUrl($products[$counter]->product_id);
?>
<?php
echo Mage::helper(‘catalog/product’)->getProductUrl($products[$counter]->product_id);
?>
<?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();
?>
apt-cache search jdk
<?php exec(“java -jar filename.jar arguments”,$output); ?>