[20] Results

PHP : Hide PHP version information from curl


By default, PHP will expose its version information when query by curl -I and you may want to hide the….... read more

PHP : Count number of JSON items/objects

php json

Recently I need to paginate the search result returned by ElasticSearch. To paginate the result with standard CodeIgniter paginate helper....….... read more

Get Facebook friends working in same company

facebook php

Problem :

Need to find common friends working in the same companies with Facebook.

Solution :

Use FQL to extract….... read more

How to test Facebook App on localhost ?

php facebook-connect

Usually, in the past when I setup Facebook application for my websites. The new Facebook App Connect API has no….... read more

CodeIgniter : How to check if a session exist in PHP?

php codeigniter session

Problem :

How to check if a CodeIgniter or PHP session exist or not?

Solution :

From the official PHP….... read more

PHP : Send HTML email

php html email

Sending email with PHP is easy and in this tutorial, we will learn how to send HTML based email with….... read more

PHP : Convert string to timestamp or datestamp before storing to database(MariaDB/MySQL)

php date timestamp strtotime

Problem :

Need to convert a date string in PHP before storing the date into database(MariaDB/MySQL). The field in table….... read more

PHP : Shuffle to display different content or advertisement

php advertisement shuffle

Problem :

Your website serves advertisement and you are looking for ways to display different images or content each time….... read more