Recursively reading files based on search option in PHP 4 and 5

Sunday, July 17, 2011 6:36
Posted in category PHP

Recursively reading files based on search option in PHP 4 and 5. It is a small script written in equivalent to Directory.GetFiles method in C#.

Read the rest of this entry »

Detecting URL and Making it as link in Text

Sunday, July 17, 2011 4:20
Posted in category PHP

We might be having large text, with urls without links. Instead of editing the text or post, we can make the url as link dynamically while displaying it in browser.

Read the rest of this entry »

Moving large file from one server to another server without downloading locally

Monday, July 11, 2011 16:07
Posted in category PHP

Here is the simple script to copy large file from one server to another server without downloading it to local machine.

Read the rest of this entry »

Script to Log into an SMTP server – phpmailer

Monday, July 11, 2011 14:59
Posted in category PHP

Best way to read and send mails is log into an SMTP server.

Read the rest of this entry »

How to get the current url in PHP?

Wednesday, March 23, 2011 7:27
Posted in category PHP

Here is simple code to get the current url in PHP
Read the rest of this entry »

SQL statement to find modified stored procedures in SQL Server Database

Thursday, July 8, 2010 8:32
Posted in category SQL Server

Most of the time we need to copy the stored procedures from development to production database server. That time we need to find out list of stored procedures modified. Here is the simple sql query to order the stored procedures modified.
Read the rest of this entry »

Quickly retrieving HTTP response status code of URL using HEAD method in PHP

Sunday, July 4, 2010 14:35
Posted in category PHP

Here is simple to retrieve the HTTP response status code of URL using HEAD method in PHP.
Read the rest of this entry »

Keep x latest files and delete remaining files from particular directory

Friday, July 2, 2010 1:37
Posted in category PHP

Here is the useful code in PHP to keep x latest files and delete remaining files from particular directory
Read the rest of this entry »

Displaying timer from server time instead of using client side time in Javascript

Sunday, June 20, 2010 14:01
Posted in category Javascript

Here is the useful Javascript function, which retrieves the Server Date Time from PHP and stores into Javascript variable. Finally runs the timer in Javascript.
Read the rest of this entry »

Finding image url is valid or not in PHP

Thursday, June 17, 2010 4:01
Posted in category PHP

Here is the very useful function to find image url is valid or not in PHP
Read the rest of this entry »