Archive for the ‘PHP’ Category

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

Sunday, July 17, 2011 6:36 2 Comments

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#.

This was posted under category: PHP Tags: , , ,

Detecting URL and Making it as link in Text

Sunday, July 17, 2011 4:20 1 Comment

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.

This was posted under category: PHP Tags: ,

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

Monday, July 11, 2011 16:07 1 Comment

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

This was posted under category: PHP Tags: ,

Script to Log into an SMTP server – phpmailer

Monday, July 11, 2011 14:59 4 Comments

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

This was posted under category: PHP Tags: ,

How to get the current url in PHP?

Wednesday, March 23, 2011 7:27 No Comments

Here is simple code to get the current url in PHP

This was posted under category: PHP Tags: ,

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

Sunday, July 4, 2010 14:35 No Comments

Here is simple to retrieve the HTTP response status code of URL using HEAD method in PHP.

This was posted under category: PHP Tags: , , , ,

Keep x latest files and delete remaining files from particular directory

Friday, July 2, 2010 1:37 No Comments

Here is the useful code in PHP to keep x latest files and delete remaining files from particular directory

This was posted under category: PHP Tags: , ,

Finding image url is valid or not in PHP

Thursday, June 17, 2010 4:01 No Comments

Here is the very useful function to find image url is valid or not in PHP

This was posted under category: PHP Tags: , , ,