C语言 c++ php mysql nginx linux lnmp lamp lanmp memcache redis 面试 笔记 ppt 设计模式 问题 远程连接

04 2013 档案
关于计算周围多少里以内的楼盘
摘要:/** * 根据经纬度计算距离 其中A($lat1,$lng1)、B($lat2,$lng2) * 注意弧度角度的计算 * 单位:km */ function _getDistance($lat1,$lng1,$lat2,$lng2) { //地球半径 $R = 6378.137; //km //将角度转为狐度 $radLat1 = deg2rad($lat1); $radLat2 = deg2rad($lat2); $radLng1 = de... 阅读全文
posted @ 2013-04-23 15:22 思齐_ 阅读(398) 评论(0) 推荐(0)
函数超时的处理
摘要:register_shutdown_function Registers the function named by function to be executed when script processing is complete or when exit() is called.此函数可以重复注册,然后会依次调用 当发生致命性错误或者exit时都会调用此函数error_reporting(0);register_shutdown_function ( 'handleShutdown' );function handleShutdown (){ $error = error 阅读全文
posted @ 2013-04-07 20:01 思齐_ 阅读(390) 评论(0) 推荐(0)