/* PHP & MySQL Journal */
Posted in: google, libraries, php | ( 6 ) Comments
2 Mar 2010Google translation is an interesting service. Not only can you do language translation, you can also detect the language of a particular text. I recently needed to create a Wordpress plugin to translate post titles from one language to another. As the translation API is only available for Java and Javascript, I decided to create a quick one for PHP. In this post we will see how to translate text from one language to another in a simple and quick way using the created class.
Posted in: general | ( 2 ) Comments
24 Feb 2010I’ve recently designed a repository of tools and libraries, www.mycodetools.com, the primary goal of which will be to create a space wherein web developers will be able to find important new libraries and tools to help them in their daily development work.
Readers feedback will be valuable regarding color scheme, content, formatting or any additional features, which will help me make the site more user friendly.
Posted in: mysql, wordpress | ( 1 ) Comment
12 Feb 2010
Building and running a Wordpress site is a simple matter. Wordpress is a considerably fast CMS system, until you start to add more and more plugins and one day you notice that Worpdress has started to slow down. It may be the case that SQL queries within some plugins are not optimized and are taking an increased amount of time executing them, this can considerably slow down your site. The first thing you can do to rectify the situation is to find out where exactly the bottleneck resides by analyzing the time each SQL query takes to executes. Some inquisitive people among you may also be interested in knowing in what sequence the Wordpress SQL queries themselves are being run. Not that all bottlenecks occur due to unoptimized SQL, most are due to poor coding practices. Whatever the reason; the following post will show you how to look inside the SQL query execution of Wordpress.
Posted in: google, php | ( 6 ) Comments
1 Feb 2010Google Analytics has become a important part of any web sites traffic analysis strategy. And with the release of the Analytics API people have been able to create custom reports and mashups for their organizations. Although no standard library is available from Google for PHP, some small and easy interfaces are available out there. In this post we will see how to access Google Analytics data using PHP using the GAPI library.
Posted in: php | ( 3 ) Comments
30 Jan 2010PHP programmers are frequently into using the various is_x group of functions: is_int, is_null etc. All of this functions take a single parameter which leads you to believe that other similar constructs take only a single parameter. Like the isset and unset constructs, which by the way take multiple parameters as shown below, which might help you save some keystrokes.
Recent Comments