Archive

Posts Tagged ‘PHP’

Modifying Wordpress Comment page for informing commenter

Mar 10th, 2010

When a commenter comment on a post then you may be queuing it for approval before it can appear on your Wordpress blog. In that case, commenter is not getting any feedback about when you are going to approve it, how much time it may take etc. For full time blogger, it is not a [...]

Handling File Read/write Concurrency Problem in PHP

Feb 23rd, 2010

Recently I need to use file for caching little bit of data. Then I thought of concurrency problem can arise in File based structure due to read/write issue. For small data and that also if  not so useful , usage of Database can be avoided. Though Database can handle any kind of conflict and other [...]

Few very common String Functions in PHP

Jan 31st, 2010

Here are few very common string functions in PHP for those who are new to PHP.  In that case just familiarize with these functions.
addslashes
Add backslash (\) before characters that need to be quoted before inserting into database. Those characters where backslash will be added are single quote (‘), double quote (“), backslash itself (\) and [...]

PHP: Getting File extension and file basename

Jan 31st, 2010

Here is a script for getting file extension. It will take care of the file name like this: yourfilename.inc.php etc and not only filename.inc or fileename.php. It will get your last part of file irrespective of how many dots in file.
<?php
// will get the file name out of whole path (path/to/file.inc.php)
$filename = basename($filePath);
// split it [...]

Wordpress: Adding Categories at the Page bottom (footer)

Jan 17th, 2010

Using Wordpress and filled all the spaces in sidebar and navigation with multiple widgets or text content, And finding no space for Categories! No worries, you have another place to add your blog categories. Add all categories at the bottom of the web site.
Generally categories become so many in numbers that you cannot add all [...]

How to Install Wordpress on Localhost (Window)

Jan 10th, 2010

Easy and step by step guide of Importing and installing wordpress on localhost. This will help in considering any possible thigns you need to modify also.

PHP require/include and relative path error

Jan 7th, 2010

Finding the correct relative path for use in you php page for include/require.

Getting all Parent Folders of a Folder and File

Dec 26th, 2009

I need to get all the parent folders of a File for a work. I searched on net to find easy solution for this and also to find some tips for my work. As, my work was heavily dependent on this logic, so I have given some time to it. But whatever I have found [...]

Wordpress SEO: Breadcrumb for each Post!

Dec 21st, 2009

All of you may have already noticed that Google has started displaying breadcrumb in place of URL at the bottom of each search result. So, here is how you can yourself add breadcrumb to Wordpress.

Web Scripting Top Blog Posts of 2009

Dec 20th, 2009

All are writing something something related to year end. So, what should I write. I though to write about the top visited posts of 2009 on my blog.
I hope you will enjoy reading it. I am sure my regular visitors will like this post.
Dynamically Populate Select List by Ajax
PHP Login and Logout Script
Javascript show hide [...]