Category Archives: PHP

Change the charset on the MySQL connection

By | July 31, 2017

Change the charset on the MySQL connection,Default MySQL character set and collation,PHP mysqli_set_charset() Function,convert a MySQL database to UTF-8 encoding When we install a MySQL database, by default we are installed with a charset of type “latin1” and a collation of type “latin1_swedish_ci” . This charset can be totally valid for our purposes. While our… Read More »

simple pagination in php , code for beginners

By | June 5, 2017

Simple Pagination With PHP & MYSQL,Creating Paging using PHP and MySQL,How to Create a Pagination in PHP,Perfect PHP Pagination Article Pagination is one of the common tasks we have in website. This tutorial is for beginners who want to make pagination with PHP and MYSQL. Pagination is one of the best way to display thousands… Read More »

How to Add values to arrays in PHP

By | May 28, 2017

An array is a data structure that stores one or more similar type of values in a single value. There are three different kind of arrays and each array value is accessed using an ID c which is called array index. Numeric array − If this is your first time seeing an array, then you may… Read More »

Category: PHP

How to convert MYSQL data to JSON using PHP

By | January 28, 2017

Today i will  Convert my data from MySQL to JSON and it should be possible effortlessly with the assistance of PHP. Generally individuals incline toward JSON over XML as JSON is anything but difficult to parse when contrasted with XML. It is choosed over XML on the grounds that it is plain content and in… Read More »

Category: PHP

Fetch unread gmail emails using PHP

By | January 27, 2017

You can easily Fetch unread gmail emails using PHP. You can get unread Emails count by gmail feeds.Here is a example how to get unread email count in your gmail account. /* If you want to use this function add your account details in varibales. */ function get_gmail($username , $password) { $url = “https://mail.google.com/mail/feed/atom”; $c… Read More »

Category: PHP

Convert Comma with String into php

By | February 16, 2015

Convert Comma with String into php Easy way to turn a comma and other sign with String in php. use this php predefined function and enjoy. <?php $str=”code,fewer,php,blog”; $arr=explode(“,”,$str); // print_r($arr); ?&gt; ?> Thanks

Category: PHP

Email Address Validation in php

By | February 7, 2015

Easily Email Address Validation in php How you gave easily  Validation to your email address in php . i talk about two ways to  set email Validation… simple validation $email = ‘mail@example.com’; $validation = filter_var($email, FILTER_VALIDATE_EMAIL);   if ( $validation ) $output = ‘proper email address’; else $output = ‘wrong email address’;   echo $output; Advanced validation… Read More »

Category: PHP

easily image resize/crop php

By | January 23, 2015

easily image resize/crop php today i talk about how you can easily resize your uploading image. it use for your portfolio image and your photo gallery. and your website open quickly no take load. let’s go. <?php   $filename= “test.jpg”; list($w, $h, $type, $attr) = getimagesize($filename); $src_im =  imagecreatefromjpeg($filename);  $src_x = ‘0’;   // begin… Read More »

Category: PHP

check user IP Address easily with simple php code

By | January 21, 2015

check user IP Address easily,Track any ip address,How Someone Can Get Your IP Address, check user IP Address with  php,How to lookup a user name and machine name using an IP address How to check user IP Address easily Hello Friends today we talk about How to you easily get IP address. and you easily  identify your… Read More »

Category: PHP