-
多php服务器实现多session并发运作
[PHP教程] 2022-03-01 15:51:28 70人阅读
首先介绍一下session的概念: 所谓session是微软首先提出的,在asp中最先集成。由于session的采用,大大方便了web开发员的工作。一时间asp风靡全球。现在php4也加入session的支持,再度显示出open source 的强大力量...[详细]
-
PHP与Javascript的两种交互方法
[PHP教程] 2022-03-01 15:50:54 192人阅读
在网页制作过程中怎样在不刷新页面的情况下使前台页面和 后台CGI页面保持交互一直是个问题。这里介绍两个我在实践中使 用的方法。 方法一:通过Cookie交互。一共是三个文件,分别为: index.htm,action.php,main.htm...[详细]
-
用PHP完成ODBC数据分页显示一例
[PHP教程] 2022-03-01 15:50:35 199人阅读
$pagesize = 2; //一页显示记录数 $con = odbc_connect(access_test,,,SQL_CUR_USE_ODBC) or die(无法连接ODBC数据源access_test); //连接一个ODBC数据源 $sql = select count(*) as total from test; //取得记录总...[详细]
-
Php高手带路 问题汇总回答
[PHP教程] 2022-03-01 15:50:11 101人阅读
1:为什么我得不到变量 我在一网页向另一网页POST数据name,为什么输出$name时却得不到任何值? 在PHP4.2以后的版本中reGISter_global默认为off 若想取得从另一页面提交的变量: 方法一:在PHP.ini中找到register_global...[详细]
-
PHP函数学习之PHP函数评价
[PHP教程] 2022-03-01 15:49:47 190人阅读
file()函数是我接触php的初期让我非常惊讶的的一个函数。相比以前我在c语言和vb里对文件读写的无比麻烦的经历,使得当时的我感觉再也没有比file()函数更方便的文件读写方式了。 PHP函数使用说明,应用举例,精简点评...[详细]
-
PHP Shell的编写
[PHP教程] 2022-03-01 15:49:15 134人阅读
以前写过一个没有任何技术含量的PHP CMD Shell,总是觉得功能很弱,并且对一些问题没有处理好,比如浏览目录等,后来深入学习PHP 后,发现了很多有趣的函数个,于是重新简单的编写了一个新的PHP Shell,希望大家喜欢...[详细]
-
使用PHP往Windows系统中增加用户
[PHP教程] 2022-03-01 15:48:53 119人阅读
一、再Web中添加用户 因为添加用户,所以你运行PHP程序的用户必须是管理员权限(Administrator),并且同时需要你的php.ini中的安全模式没有打开,并且关闭函数中没有关闭system()、exec()、passthru()等函数。 ( 以下...[详细]
-
PHP程序漏洞产生的原因和防范办法
[PHP教程] 2022-03-01 15:48:23 185人阅读
滥用include 1.漏洞原因: Include是编写PHP网站中最常用的函数,并且支持相对路径。有很多PHP脚本直接把某输入变量作为Include的参数,造成任意引用脚本、绝对路径泄露等漏洞。看以下代码: ... $includepage=$_GET...[详细]
-
PHP初学者头疼问题总结
[PHP教程] 2022-03-01 15:47:45 199人阅读
文本关键字:程序设计/PHP/技巧 【1】页面之间无法传递变量 get,post,session在最新的php版本中自动全局变量是关闭的,所以要从上一页面取得提交过来得变量要使用$_GET[foo],$_POST[foo],$_SESSION[foo]来得到。 当...[详细]
-
PHP程序加速探索之服务器负载测试
[PHP教程] 2022-03-01 15:47:10 116人阅读
服务器负载太大而影响程序效率也是很常见的,我们需要对此进行测试。这里我以目前最常用的Apache服务器为例。 Apache服务器自带有一个叫AB(ApacheBench)的工具,在bin目录下。使用这个轻巧的工具我们可以对服务器进...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]