php

Posts Tagged ‘php’

Here’s some code which allows you to calculate the distance in miles, kilometres or nautical miles between two sets of coordinates:
[code lang="js"]/* Function Name: distance()
Function Description: Calculates the distance between two sets of coordinates.
@Author: Adam Williams <adam.williams@awdigital.eu>
@License: Creative Commons Attribution-Share Alike 2.0 UK: England & Wales - http://creativecommons.org/licenses/by-sa/2.0/uk/
@Example: distance(53.61857936489517, -1.4501953125, 65.82078234733756, -172.265625, [...]

Continue Reading -»

You can set the error reporting level in PHP and also define whether it is displayed to the user or saved to a log file.
The level can be defined either in the php.ini, .htaccess or directly inside a PHP script.
The logging level options are:

E_ALL – will log every error, including notice messages
E_WARNING – will log [...]

Continue Reading -»