RSS feed reader – PHP

$url = “web url”; $ch = curl_init();curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_POSTFIELDS, $request);// what to postcurl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);curl_setopt($ch,…

Continue Reading →

Posted in: PHP

XML Sorting using attributes – PHP

////////function for convert xml attributes into array///////// function create_array($obj){$arr = (array)$obj;if(empty($arr)){$arr = “”;} else {foreach($arr as $key=>$value){if(!is_scalar($value)){$arr[$key] = create_array($value);}}}return $arr;}…

Continue Reading →

Posted in: XML

PHP File Upload Functionality

function imageupload($photopath,$vphoto,$vphoto_name,$prefix){ $msg=”; if(is_file($vphoto) and !empty($vphoto_name)) { // Remove Dots from File name $tmp=explode(“.”,$vphoto_name); for($i=0;$i

Continue Reading →

Posted in: PHP