-
PHP实现腾讯与百度坐标转换
[PHP教程] 2021-02-23 11:34:32 139人阅读
废话不多说,直接上代码 $x = (double)$b - 0.0065; $y = (double)$a - 0.006; $x_pi = 3.14159265358979324; $z = sqrt($x $x+$y $y) - 0.00002 sin($y $x_pi); $theta = atan2($y,$x) - 0.000003 cos($x $x_pi); $...[详细]
-
php mysql数据库操作类(实例讲解)
[PHP教程] 2021-02-23 11:23:33 167人阅读
接着稍微说说整体的思路。整个类的封装,包含一个连接数据库的私有属性$conn和若干操作函数。$conn在对象实例化的时候,由构造函数处理传入的参数后返回一个资源型的连接句柄。而后即可通过调用该实例化的对象的相应...[详细]
-
php封装的mongodb操作类代码
[PHP教程] 2021-02-23 11:22:03 186人阅读
核心代码 /* To change this template,choose Tools | Templates and open the template in the editor. */ class mongo_db { private $config; private $connection; private $db; private $connection_string; pri...[详细]
-
php批量转换文件夹下所有文件编码的函数类
[PHP教程] 2021-02-23 11:17:28 110人阅读
函数代码: $value) { iconv_file($value); } } else { $contents_before = file_get_contents($filename); /*$encoding = mb_detect_encoding($contents_before,array('CP936','ASCII','GBK','GB2312','UTF-8')); e...[详细]
-
php+javascript实现的动态显示服务器运行程序进
[PHP教程] 2021-02-23 11:15:35 191人阅读
本篇章节讲解php+javascript实现的动态显示服务器运行程序进度条功能。供大家参考研究具体如下: 经常有这样的业务要处理,服务器上有较多的业务需要处理,需要分批操作,于是就需要一个提示客户现在完成进度的进度...[详细]
-
PHP与JavaScript针对Cookie的读写、交互操作方
[PHP教程] 2021-02-23 11:15:03 111人阅读
本篇章节讲解PHP与JavaScript针对Cookie的读写、交互操作方法。供大家参考研究具体如下: 下面的例子列出几种情形交互场景,列出JS和php交互的方法。总结下,以免日后再为cookie问题困扰。 读取cookie 一 读取php传...[详细]
-
PHP编程中的Session阻塞问题与解决方法分析
[PHP教程] 2021-02-22 17:48:38 147人阅读
本篇章节讲解PHP编程中的Session阻塞问题与解决方法。供大家参考研究具体如下: 使用session过程中,在开启session后,同一浏览器,执行同一程序,不同页面会被锁。不同浏览器不会出现这种情况。 疑问: 是不是sessi...[详细]
-
PHP基于IMAP收取邮件的方法示例
[PHP教程] 2021-02-22 17:47:42 172人阅读
本篇章节讲解PHP基于IMAP收取邮件的方法。供大家参考研究具体如下: 因需要处理公司企业邮箱被退信邮件问题:刚开始的思路是通过模拟登陆,对邮件进行抓取,(这种事情对我来说,做过了很多次,轻车熟路),不过邮箱...[详细]
-
在Yii2特定页面如何禁用调试工具栏Debug Toolba
[PHP教程] 2021-02-22 17:39:18 150人阅读
前言 本文主要给大家介绍了关于在Yii2特定页面禁用调试工具栏Debug Toolbar的相关内容,分享出来供大家参考学习,话不多说了,来一起看看详细的介绍: yii2的调试工具栏,堪称神器。只要在配置文件web.php中配置好,...[详细]
-
php基于session锁防止阻塞请求的方法分析
[PHP教程] 2021-02-22 17:38:06 110人阅读
本篇章节讲解php基于session锁防止阻塞请求的方法。供大家参考研究具体如下: 说明: 这是一篇参考国外网站http://konrness.com/php5/how-to-prevent-blocking-php-requests/的译文,前面一篇文章简单分析了php sess...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]