php

mysql output to an array for easy parsing.

2011/05/11

 Today I was looking for some way to put the output of the mysql output in an array in a bash script. Quick google search yeilded to results something like this: […] <td> <div …

analyze debug queries output for wordpress

2011/02/09

Some time back, my website became too slow and I started getting timeout response for quite a lot of my pages. When I analyzed things, I found the issue was with the DB queries taking a lot of time. …

OpenID for non-SuperUsers

2010/09/07

Based on the results of my Unobtrusive <a class="zem_slink" title="OpenID Foundation" rel="homepage" href="http://openid.net">OpenID post, it is quite …

Adding a sub-menu in the wordpress admin menu :)

2010/07/29

For the impatient ones, first the code: (in wp-admin folder, open the file menu.php) and locate the code: […] $submenu[&#8217;edit.php&#8217;][10] = array( _x(&#8217;Add …

Using PHP to search a MySQL database and return paged results

2010/06/25

<a href="http://www.designplace.org/scripts.php?page=1amp;c_id=25">Using PHP to search a MySQL database and return paged results Link above to the article. I am using this as base to …

Browser or User agent identification with php.

2010/06/09

<a href="http://apptools.com/phptools/browser/source.php">Link This is a link to very nice code to identify the browser used by the user. I have put a test program with this <a …

Verify all the paths in the PATH directory

2010/06/08

Here is the command to test that all the directories in your path actually exist. […] (<a class="zem_slink freebase/en/internal_field_separator" title="Internal field …

vim – get names of the scripts and the details from the command line

2010/05/19

For the below commands either you can set the two variables in bold and then run the scripts or change the following in the commands and run the scripts. If you have html2text installed then you can …

Find out why a program can’t seem to access to a file

2010/05/05

$ strace php tias.php -e open,access 2>&1 | <a class="zem_slink freebase/en/grep" href="http://en.wikipedia.org/wiki/Grep" title="Grep" …

String and Array Creation

2010/04/28

<img src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/perl-one-liners.jpg" alt="Perl One Liners" align="bottom" />This is the fourth part of a …

vim search multiple files

2010/03/25

Searching some pattern in multiple files is something that is required very often. There are multiple ways to do it, like <a class="zem_slink freebase/en/grep" title="Grep" …

phpMyEdit – Mysql table viewer, editor and php code generator.

2009/10/01

As a developer, whenever you want to write the php code to get the data from the MySQL database, sometimes it becomes tiresome and time taking. And what if you had to do it dynamically. Well I have …


This website uses cookies to ensure you get the best experience on our website. Learn more Got it