Distance between two Latitudes and Longitudes – Part 2

This series is about code in various languages that will calculate the distance between two latitudes and longitudes. This article is for the Javascript code. Code courtsey : GeoDataSource /*::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/ /*:: :*/ /*:: This routine calculates the distance between two :*/ /*:: points (given the latitude/longitude of those points). :*/ /*:: It is being used… Continue reading Distance between two Latitudes and Longitudes – Part 2

Secure Upload Folders

There are two ways to prevent execution of any (malicious) scripts uploaded to by users. Method one – like described in this post. Method two – add the below code to .htaccess file of the directory that needs to be protected. RemoveHandler .cgi .php .php3 .php4 .php5 .phtml .pl .py .pyc .pyo .sh .html .shtml… Continue reading Secure Upload Folders