PHP

Posts related to PHP

PHP double quotes vs single quotes

PHP double quotes vs single quotes Read More »

Get search query string from search engines using PHP

Get search query string from search engines using PHP Read More »

PHP isset() vs empty() vs is_null()

PHP isset() vs empty() vs is_null() Read More »

Getting real client IP address in PHP

Many times we need the visitor’s ipaddress for validation, security, spam prevention, etc. Getting the Visitor’s ipaddress is very easy in PHP. The simplest way to get the visitor’s/client’s ipaddress is using the $_SERVER[‘REMOTE_ADDR’] or $_SERVER[‘REMOTE_HOST’] variables. The variable in the $_SERVER array are created by the web server (like apache) and we can use

Getting real client IP address in PHP Read More »

Voting Functionality in a website

Voting Functionality in a website Read More »