• 2024-08-17织梦dedecms提示:Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in
    dedecms提示:Deprecated:__autoload()isdeprecated,usespl_autoload_register()insteadinweb文件复制过去,数据库用phpmyadmin导出导入过去,修改“data/common.inc.php”里面的数据库信息。打开首页正常,登录后台的时候直接提示“Deprecated:__autoload()isdeprecated,
  • 2024-04-04PHP代码审计——Day3-Snow Flake
    漏洞解析//实现了一个基本的MVC(Model-View-Controller)结构,通过动态加载控制器类和数据,并调用控制器的方法来实现基本的页面渲染。//自动加载函数,用于动态加载类文件。当使用尚未定义的类时,PHP会自动调用该函数来加载类文件。此处,__autoload函数会尝试加载与类名$className
  • 2024-02-27CTFHUB-web-信息泄露-PHPINFO
    开启题目访问只有这一个页面,看一下flag在没在页面里信息发现:https://www.cnblogs.com/Cl0ud/p/15999347.html系统版本信息配置文件位置allow_url_fopen&allow_url_include文件包含必看选项之一,如果allow_url_fopen和allow_url_include都为On的时候,则文件包含函数
  • 2023-12-20vim 安装emmnt插件
    github地址:https://github.com/mattn/emmet-vimcd~/.vimgitclonehttps://github.com/mattn/emmet-vim.gitcdemmet-vimcp-rplugin~/.vim/plugincp-rautoload~/.vim/autoload新建一个测试文件sudovimindex.html按键i进入输入模式,一定要确保光标在输入字符之后html:5按键
  • 2023-10-17fastify-autoload + ncc + s3 实现模块的插件化开发加载
    以前简单说明过基于fastify-autoload的插件化加载fastify插件,方便实现开发,但是对于实际生产环境我们可以需要频繁的模块修改,发布以及构建,所以需要我们需要频繁的调整,不是很方便,我们可以基于ncc进行入口的打包,同时对于每个插件也基于ncc打包为独立的文件,这样我们开发的插件只需
  • 2023-10-17fastify-autoload 一个方便的插件动态加载包
    fastify-autoload是一个方便的fastify插件加载工具,我们可以基于路径直接加载开发的插件参考使用配置constFastify=require('fastify')constpath=require("path")constautoLoad=require('@fastify/autoload');constapp=Fastify({logge
  • 2023-09-07Panel采用autoLoad载入页面如何传参更新页面——EXTJS2.2.1
    //右侧flash图片浏览panelvarflash_pic_panel=newExt.Panel({id:'flash_pic_panel',animate:true,border:false,items:[{autoLoad:{//参数说明-NoDecorate:url拦截中用于标识此请求返回的页面不需装饰url:requestCont
  • 2023-07-07使用vscode的devcontainer以及docker初体验
    想尝试0xffff提供的devcontainer来搭建开发环境。在后面发现搭建失败,都显示连接失败。后面查看nginx的log日志发现,nginx服务是正常启动的,可以看到404。查看phperrorlog发现,是未找到autoload.php。顺着找下去我发现,可能是因为composer包没有安装完全。flarum-lang/chinese-simp
  • 2023-06-30laravel8配置全局公共函数步骤详解
    1.首先添加文件,app/Helpers.php,我这里是这个名字因为习惯了,你也可以自己定义<?phpif(!function_exists("getFileName")){/***从路径中获取文件名*@param$fileName*@returnstring*/functiongetFileName($fileName){$s
  • 2023-06-29不更改composer源文件的情况下重写compsoer类
    在工作中有时候会遇到原来用的composer包已经不能完全满足需求了,需要重新加入一些功能,这个时候我们可以通过重写composer包类来实现。1.排除的compsoer类,以下为例:"exclude-from-classmap":["vendor/vectorface/googleauthenticator/src/GoogleAuthenticator.php"
  • 2023-03-03Laravel运行项目提示/composer/autoload_real.php问题
    1.确保已安装Composer。如果没有请安装.安装步骤参考:http://www.360doc.com/content/22/0919/15/65839921_1048527526.shtml2.进入Laraver项目的根目录,通过命令窗口执行
  • 2023-02-02spl_autoload_register的使用
    classLoader{staticfunctionloadClass($class){$class=$class.'.php';if(file_exists($class)){include($class);return;}}}spl_au
  • 2023-02-01spl_autoload_register装在函数的正确写法
    AutoLoading\loading<?phpnamespaceAutoLoading;classLoadind{publicstaticfunctionautoload($className){//根据PSR-O的第4点把\转换层(目录风格
  • 2022-12-20FreeSWITCH学习笔记:XML配置文件
    本文更新于2022-12-20,使用FreeSWITCH1.10.7。目录加载顺序autoload_configs/autoload_configs/acl.conf.xmlautoload_configs/callcenter.conf.xmlautoload_configs/cdr_
  • 2022-08-13How to fix: Cannot redeclare spl_autoload_register()?
    在PHP8.0之前支持类的自动加载是是这样写的__autoload,但是在8.0之后就不支持了,但是8.0之后支持spl_autoload_register关于spl_autoload_register的使用方法<?phpf