date_default_timezone_set("Asia/Calcutta"); //require_once('../SolrPhpClient/Apache/Solr/Service.php'); ###### to 40.81 $nfs_ips = array('1' => '172.30.11.47' ,'2' => '172.30.11.53' ); foreach ($nfs_ips as $key=>$ip) { /*$solr = new Apache_Solr_Service($ip, 2000 , '/gfs-data/solr/C39/tomcat2000/solr_colors_videos/'); if ($solr->ping()) {*/ $document->tvid = ($_REQUEST["tvid"]); $document->title = urldecode($_REQUEST["title"]); $document->summary = urldecode($_REQUEST["summary"]); $document->categoryId = $_REQUEST["categoryId"]; $document->Image = ($_REQUEST["Image"]); $document->publishdate = urldecode($_REQUEST["publishdate"]); $document->categoryname = urldecode($_REQUEST["categoryname"]); $document->scheduleId = urldecode($_REQUEST["scheduleId"]); $document->showId = urldecode($_REQUEST["showId"]); $document->stime = urldecode($_REQUEST["stime"]); $document->etime = urldecode($_REQUEST["etime"]); $document->date = urldecode($_REQUEST["date"]); $document->episodeName = urldecode($_REQUEST["episodeName"]); $document->channelId = urldecode($_REQUEST["channelId"]); $document->showDetails = urldecode($_REQUEST["showDetails"]); echo "
"; print_r($document); exit; /*$solr->addDocument($document); //$solr->commit(); if($ip == '172.30.11.47') echo $id; unset($document); unset($id); //} } unset($solr);*/ } ?>