LisonRead 本次搜索耗时 0.101 秒,为您找到 307 个相关结果.
  • PHP分批写入数据库

    53 2025-05-28 《PHP》
    $limit = 200; $num = ceil(count(self::$log)/$limit); // 为了避免一次过插入数据过多,使用分批插入的方式 for ($i = 0; $i < $num; $i ++) { model('log/LogData')->saveAll(array_slice(self::$log,...
  • file_put_contents($payLog

    53 2020-05-08 《PHP》
    file_put_contents($payLogFile, $newLog.PHP_EOL, FILE_APPEND); 很多时候记录日志需要换行。不建议使用\r\n,因为: 在windows中\r\n是换行 在Mac中\r是换行 在Liunx中\n是换行 但是PHP提供了一个常量来匹配不同的操作系统,即:PHP_EOL
  • grep 命令用于查找文件里符合条件的字符串在当前

    53 2022-03-03 《Linux系统》
    grep 命令用于查找文件里符合条件的字符串 在当前目录中,查找后缀有 file 字样的文件中包含 test 字符串的文件,并打印出该字符串的行。此时,可以使用如下命令: grep test * file 查看php相关信息或扩展信息命令: php -i | grep dir 查看php-fpm是否开启: ps -ef | grep php 或者 ...
  • $('input[type=checkbox]')

    53 2019-11-24 《JavaScript》
      $('input[type=checkbox]').change(function() {       if (this.checked) {         $(this).attr("value","1");       }else{         $(this).attr("value","0");       }     }); ...
  • htaccess伪静态 RewriteCond%

    53 2018-10-12 《PHP》
    htaccess伪静态 RewriteCond %{REQUEST_URI} ^/([A-Za-z0-9]+)/([A-Za-z0-9]+)/([A-Za-z0-9]+)/([A-Za-z0-9]+) RewriteRule ^(.*)$ index.php/index/login/urltrans?aa=$1 [L,QSA]
  • $.ajax({type:"get",async:

    53 2019-11-04 《JavaScript》
    $.ajax({             type: "get",             async: true,             url: "http://10.8.0.5/api-openinternal",             dataType: "jsonp",             jsonp: "callback", ...
  • vscode的settings.json配置和一些

    53 2022-04-02 《PHP》
    vscode的settings.json配置和一些插件 php intelligence //代码追踪插件(记得要添加php.exe路径)live server //插件 {     "vscode_custom_css.imports": [         "file:///C:/Users/cfskk/.vscode/extensions/robb...
  • PHP的前端编辑上传文件漏洞、editor

    53 2023-08-18 《网络安全》
    PHP的前端编辑上传文件漏洞、editor
  • PHP函数 exec 获取更高权限(sudo) $

    53 2020-12-24 《PHP》
    PHP函数 exec 获取更高权限(sudo) $result = exec("whoami", $outcome, $status); var_dump($outcome); //array(1) { [0]=> string(6) "apache" } 以超级用户(如root用户)执行 visudo (实际路径为/etc/sudoers)来编辑配置文件。...
  • 如何安装 Composer下载 Composer安

    53 2024-05-09 《composer》
    如何安装 Composer 下载 Composer 安装前请务必确保已经正确安装了 PHP。打开命令行窗口并执行 php -v 查看是否正确输出版本号。 打开命令行并依次执行下列命令安装最新版本的 Composer: php -r "copy('https://install.phpcomposer.com/installer', 'composer-se...