Tag: php
Flickr Badges Open New Window jQuery way
I recently added a Flickr Badge to a site and really loved everything about it except that there was no way to have it open the photos in a new window when they were clicked Flickr badge looked like the following – Username – Group The following script would loop back through all of the…
PHP Conditional statements to identify iPad or iPod or iPhone
This tutorial will show you how to detect iPad or iPod or iPhone using PHP Devices which request content from your website (usually) pass a user agent string. This contains information such as its name, OS, browser version, and rendering engine. Apple’s gadgets pass the following user agents, although you may find subtle variations in…
Fix Broken WordPress.com stats
Broken WordPress.com stats show no visitor come to your site. This problem is related to WordPress template function name wp_footer Add the following to footer.php file, put it before Note: Automattic bundle wordpress.com stats with Jetpack, please switch to Jetpack from the old wordpress.com stats plugin
How to disable phpinfo
The phpinfo() function is a very powerful one, you can learn quite a lot about your PHP installation. Some server administrators may choose to disable the PHP function phpinfo() for security reasons, because it displays information which can be used to compromise the server that your site is running on. You can completely disable phpinfo(). First…
How to check what PHP version running on Linux?
It’s very simple to check PHP version 1. PHP Info You can use the following to yield PHP version number via Command Line or You can create a php file contain the following, upload it to your website Note: if your sys admin disabled phpinfo, you cannot check what PHP version with phpinfo() 2. Short…