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

随笔 - 305  文章 - 1  评论 - 50  阅读 - 168万
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 思齐_ 阅读(390) 评论(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 思齐_ 阅读(380) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示