2021-12-07 13:31
86
0
0
0
php 服务器性能检测探针文件
function test_basic($score){
$items['操作系统']=PHP_OS;
$items['服务器软件']=$_SERVER["SERVER_SOFTWARE"];
$runMode = null;
$runMode = php_sapi_name();
switch($r
2021-12-07 13:31
82
0
0
0
trigger_error
(PHP 4 >= 4.0.1, PHP 5)
trigger_error -- Generates a user-level error/warning/notice message
范例
例子 1. trigger_error() example
See set_error_handler() for a more
2021-12-07 13:31
92
0
0
0
通过FTP设置文件权限
if (!function_exists('ftp_chmod')){
function ftp_chmod($ftp_stream, $mode, $filename){
return ftp_site($ftp_stream, sprintf('CHMOD %o %s', $mode, $filename));
}
2021-12-07 13:31
96
0
0
0
str_ireplace(PHP 5)str_ireplace -- Case-insensitive version of str_replace().Descriptionmixed str_ireplace ( mixed search, mixed replace, mixed subject [, int &count] )This functio
2021-12-07 13:30
91
0
0
0
thinkphp 后台登陆验证
测试地址:http://www.seocn.info/web/thinkmsg/Admin
用户名:test
密码:test
function login()
{
$Form = D("testadmin");
import('@.ORG.Session');
if ($Form->crea
2021-12-07 13:30
91
0
0
0
PHP读取目录下所有文件的代码
读取目录下所有文件的代码,可以不管文件名
复制代码 代码如下:
2021-12-07 13:30
116
0
0
0
PHP 数组排序 sort、asort 及 ksort 系列函数
?sort() 函数用于对数组单元从低到高进行排序。
?rsort() 函数用于对数组单元从高到低进行排序。
?asort() 函数用于对数组单元从低到高进行排序并保持索引关系。
?arsort() 函数用于对数组单元从高到低进行排序并保持索引关系。
?ksort() 函数用于对数组
2021-12-07 13:30
90
0
0
0
php的url十六进制加密
其中ord用于返回字符的ASCII码
dechex 将十进制转换为十六进制
strtoupper 将字符转换为大写
这种链接搜索引擎是认的