Saturday, February 27, 2010

Thursday, February 25, 2010

Create a Zip file and make available for download using Coldfusion 8

Coldfusion 8 has the tag CFZIP by which we can zip/unzip a folder in the server. For creating a file download, that is, the user will be prompted for saving the file, we can use CFHEADER tag. We can use CFCONTENT tag to deliver the content in an unpublished directory (not mapped to web server) to the user.

Now, let us begin with cfzip.

<cfzip action="zip" source="C:\myfiles\myphotos" file="c:\download\myphotos.zip">

Tuesday, February 23, 2010

Find details of mobile operator from the number

Just came across this wikipedia page showing the list of allocated numbers to different mobile operators in India. If you get the first four digits of the mobile number, then you can go through the chart in the page to find out the operator and the state.
http://en.wikipedia.org/wiki/Mobile_telephone_numbering_in_India