Saturday, 2 August 2014

CURRENCY

<?php

function currency($from_Currency, $to_Currency, $amount) {
  $amount = urlencode($amount);
  $from_Currency = urlencode($from_Currency);
  $to_Currency = urlencode($to_Currency);
  $url = "http://www.google.com/ig/calculator?hl=en&q=$amount$from_Currency=?$to_Currency";
  $ch = curl_init();
  $timeout = 0;
  curl_setopt($ch, CURLOPT_URL, $url);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)");
  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
  $rawdata = curl_exec($ch);
  curl_close($ch);
  $data = explode('"', $rawdata);
  $data = explode(' ', $data['3']);
  $var = $data['0'];
  return round($var, 3);
}

echo currency(USD, PKR, 1) . "<br />"; // echo 973.236 // http://www.google.com/ig/calculator?hl=en&q=PKR=?1USD
echo currency(USD, PKR, 10) . "<br />"; // echo 972.478849 // http://www.google.com/ig/calculator?hl=en&q=PKR=?10USD
echo currency(USD, PKR, 11); // echo 11 but it should return 1 069.72673 // http://www.google.com/ig/calculator?hl=en&q=PKR=?11USD
?>

LOGIN PHP CODE

LOGIN CODE IN PHP EAZY TO DEVLOPED


SQL AND & OR Operators

SELECT * FROM REGISTRATION1 WHERE COUNTRY='INDIA' and CITY='KALOL';


Friday, 1 August 2014

vacancy in Blue Bird Technologies Pvt. Ltd

Company Name : Blue Bird Technologies Pvt. Ltd
Company Profile :
This is precisely what differentiates Blue Bird from the multitude of IT players in the global arena. We, a total Software Development and Consulting firm with our headquarters in Chennai, India are engaged in providing technical, manpower and infrastructure resources to organizations for developing g enterprise centric business IT solution applications.
Job Description :
Designation :  Software Developer
Qualification :  BE/B.Tech/MTech/MCA – 60%
Pass Out Year :  2012/2013/2014
Experience :  Fresher’s
Location:  Bangalore, Mumbai, Hyderabad, Delhi, Chennai
Salary:  As per the Industry
Skills: Good Communications

Class in PHP

A class is a collection of variables and functions working with these variables. Variables are defined by var and functions by function.

php interview questions