Browse Author


Search for string in php files (Including subdirectories)

While working on freelancing project, I was told to include a search functionality which would search all php file in a directory including its sub-directories. I used the file_get_contents function of PHP in this following way.


Room Availability Check According to Time

Table Structure:


Code to check the availability and show the status through message box


Apply theme throughout the network

Recently while working on a project, I was told to apply Twenty Eleven on all the sites in a wordpress network. Instead of hardcoding it, I made a plugin where you could select the theme you want to apply. This is just a one page plugin.

First I made a function which would add the page in the network admin section. This would call another function anshu_apply_theme_settings_form

aes_apply_theme_settings_form function

and the final code of my wordpress plugin was