free hit counter

Prevent uploads nude or adult images using php

Prevent uploads nude or adult images using php
  Image Nudity Filter can be used to determine whether an image may contain nudity. It analyses the colors used in different sections of an image to determine whether those colors match the human skin color tones. As result of the analysis it returns a score value that reflects the probability of the image to ...

Beyond caching: Google engineers reveal secrets to faster websites

Beyond caching: Google engineers reveal secrets to faster websites
In the fiercely competitive world of Internet services, Google constantly seeks ways to speed up the delivery of content to its hundreds of millions of users. At the O’Reilly Velocity conference this week in New York, two Google engineers presented some of their favorite tips and research for expediting delivery of web pages and applications. Such ...

Currency Conversion Using Google Calculator API

Currency Conversion Using Google Calculator API
  Google is a magical search engine. Google also provides many APIs to be incorporated in your application. Today, we will use Google’s hidden currency conversion API. Why hidden? Because there is no official documentation for it. We will build a currency converter from scratch, it pulls data from Google and display the results using ...

Check If The Request Came From Mobile Or Computer In PHP 1

Check If The Request Came From Mobile Or Computer In PHP
*In today’s world it is important to make your website accessible to all of your users. Although many people still access your website though their computer, a huge amount of people are also accessing your website from their phones and tablets. When you are programming your website it is important to keep these types of ...

Calculate Distance by Latitude and Longitude using PHP and Javascript

Calculate Distance by Latitude and Longitude using PHP and Javascript
Geo-location is becoming more and more popular as time passes and technology supports it better more so as there is plenty of free resources to help you get the data you need to be more GEO centric with your users. However sometimes you want to give a range from point A to point B and ...

Submit Form Using Ajax In Php

Submit Form Using Ajax In Php
A very simple tutorial submitting HTML form values without refreshing page using jQuery and Ajax. Just implement this and enrich your web applications. you can also upload file using this method use this j query <script src=”http://malsup.github.io/jquery.form.js” type=”text/javascript”></script>     $(document).ready(function(){          $(‘#submit_this’).live(‘click’, function()                          {                  $(“#form_id_here”).ajaxForm({                                            target: ‘#app_data’, // for response message                       beforeSubmit:function(){                                                   $(‘#button_div’).empty();                          $(‘#button_div’).append(‘<input type=”button” value=”Processing…..” id=”np”>’);              $(“#app_data”).html(”);                          },                      success: function(response) {                          $(‘#button_div’).empty();                          $(‘#button_div’).append(‘<input type=”button” value=”Submit” id=”submit_this”>’);   ...

Online syntax highlighting For Blogger

Online syntax highlighting For Blogger
Generate syntax highlighted code blocks for your blog or webpage.  Supports Javascript, Powershell, Python, Ruby, C++, C#, CSS, Delphi, Java, PHP, SQL, VB[.Net], XML, HTML Normal code   highlighted code use this online tool for code highlighting  http://www.thecomplex.plus.com/highlighter.html

Validate Form Using Model Without Table In Cakephp 2

Validate Form Using Model Without Table In Cakephp
Validate Form Using Model Without Table In Cakephp (eg- Contact Us form )   Form Validation is an essential task in any online application, its also an incredibly dull, tedious and repetitive task but with CakePHP you can cut down the time and effort you spend validating your form data. In a standard PHP application ...

Get latitude and longitude based on location name google maps api

Get latitude and longitude based on location name google maps api
how to get Latitude and Longitude in Google Maps using PHP   The idea is simple. Make a request to Google Maps server, and it will return an XML (or JSON). Then, parse the XML to get the Lat and Lon. function Get_Lat_lng($address=null)   {   if(!emptyempty($address)){   $prepAddr = str_replace(‘ ‘,‘+’,$address);   $geocode=file_get_contents(‘http://maps.google.com/maps/api/geocode/json?address=’.$prepAddr.‘&sensor=false’);   $output= json_decode($geocode, true);   if($output[‘status’] ==‘OK’)   {   $lat = $output[‘results’][0][‘geometry’][‘location’][‘lat’];   $lng = $output[‘results’][0][‘geometry’][‘location’][‘lng’];   $map_code=array(‘status’=>‘ok’,‘lat’=>$lat,‘lng’=>$lng);   return $map_code;   }   else{   ...

The perfect PHP clean url generator 23

The perfect PHP clean url generator
THE PERFECT PHP CLEAN URL GENERATOR In my hunt for the perfect clean url (smart url, slug, permalink, whatever) generator I’ve always slipped in some exception or bug that made the function a piece of junk. But I recently found an easy solution I hope I could call “definitive”. Clean url generators are crucial for ...