<?php  /*  *  * @param string $title_1 题目1  * @param string $title_2 题目2  * @return float $percent 相似百分比  */ function title_similar($title_1,$title_2) {   $title_1&nbs...
日期:2021-12-07 浏览:1355次 评论: 0 阅读全文
function CreateThumbs($image_path,$thumb_width,$thumb_height,$thumb_pro,$thumb_path,$ml=1,$thumb_quality=100){    if ($thumb_path!=''){    /*    $thumb_array=explode('/',$thumb_path);    if (count($th...
日期:2021-12-02 浏览:1293次 评论: 0 阅读全文
function CreateThumbs($image_path,$thumb_width,$thumb_height,$thumb_pro,$thumb_path,$ml=1,$thumb_quality=100){    if ($thumb_path!=''){    /*    $thumb_array=explode('/',$thumb_path);    if (count($th...
日期:2021-11-30 浏览:1343次 评论: 0 阅读全文
查看进程就是使用ps命令而已,只不顾ps的参数太多了。   使用php查询的话,必须要开启几个函数(可以执行外部程序的函数),参考官网:http://php.net/manual/zh/book.exec.php   下面是在php进程中查询某个服务创建的进程数,比如httpd,mysqld,sshd....... <?php     functio...
日期:2021-11-28 浏览:1355次 评论: 0 阅读全文
$url = "https://www.xxx.com"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); //请求url地址     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //设置获取页面内容     curl_setopt($ch,&n...
日期:2021-11-22 浏览:1818次 评论: 0 阅读全文
@$k=$_GET['k'] ? $_GET['k'] : '知识就是财富'; @$u=$_GET['u'] ? $_GET['u'] : 'www.tra56.com'; $rn='50'; $url = "https://www.baidu.com/s?ie=utf-8&wd=".$k."&rn=".$...
日期:2021-11-04 浏览:1529次 评论: 0 阅读全文
操作类 <?php   /** * SqlServer操作类(sqlsrv) * Class SQLSrv */ class SQLSrv {    private $dbhost;    private $dbuser;    private $dbpw;    private $dbname;    pri...
日期:2021-11-04 浏览:1438次 评论: 0 阅读全文
html部分index.html <title>无刷新上传文件</title> <meta content-type="text/html" charset="utf-8"> <script type="text/javascript"> function startUpload() { document.getElementById('processing').innerHTML ...
日期:2021-11-04 浏览:1442次 评论: 0 阅读全文