Sometimes we need to get something from current URL or page or we need to check for something (text or variable) in URL which can determine further action in that page. Suppose you want to match any word in the current URL and if that word or text is present in URL, you want to […]


We can find out the difference between two given dates in PHP very easily. Consider the following PHP script:


This script will provide you visitor’s browser’s information.

{ 1 comment }

I think there is no way yet to find out screen resolution with PHP. hehehe. If I am wrong please correct me. But yet we can trick it to be happen ;-) If not then how can we be developers. Right! With javascript we find out screen resolution of PC. Store it in a cookie […]


Browser Check With PHP

by Hiroshi on August 4, 2008

in Checks, Scripts

Use this simple test for checking or detecting user’s browser information.

{ 1 comment }

function_exists — Return TRUE if the given function has been defined. To check that whether a function is defined or exists or not use function_exists. Checks the list of defined functions, both built-in (internal) and user-defined, for function_name. Returns TRUE on success or FALSE on failure.