随笔分类 -  PHP

摘要:https://blog.csdn.net/u012931845/article/details/133899174 D:\phpstudy_pro\WWW\yingxin\vendor\phpoffice\phpspreadsheet\src\PhpSpreadsheet\Cell\Default 阅读全文
posted @ 2024-05-07 07:56 哆啦阿梦 编辑
摘要:使用json_encode("栏目中(英)文名称已存在")时,遇到返回乱码: {"code":400,"msg":"\u680f\u76ee\u4e2d\uff08\u82f1\uff09\u6587\u540d\u79f0\u5df2\u5b58\u5728"}后来发现时引号的问题,于是修改为js 阅读全文
posted @ 2024-04-26 11:01 哆啦阿梦 编辑
摘要:https://blog.csdn.net/weixin_44064067/article/details/107643460 翻译 搜索 复制 阅读全文
posted @ 2024-04-25 17:48 哆啦阿梦 编辑
摘要:public function index() //该方法只用于php5 { $els = new PHPExcel(); $filename = FCPATH . 'xls/aaa.xls'; $obj = new \PHPExcel_Reader_Excel5(); $nn = $obj->lo 阅读全文
posted @ 2024-01-12 20:32 哆啦阿梦 编辑
摘要:环境PHP+小皮面板(apache): 1、在httpd.conf,取消注释:LoadModule headers_module modules/mod_headers.so 2、修改需要被访问网站的vhosts.conf: <Directory "*"> Options FollowSymLink 阅读全文
posted @ 2023-12-06 15:18 哆啦阿梦 编辑
摘要:引入: https://www.php.cn/faq/414010.html 阅读全文
posted @ 2023-11-29 11:18 哆啦阿梦 编辑
摘要:.htaccess文件RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d //-d 如果目录存在就直接访问,不进行RewriteRule RewriteCond %{REQUEST_FILENAME} !-f //-f 如果文件存在就直接访问,不 阅读全文
posted @ 2023-01-12 11:54 哆啦阿梦 编辑
摘要:PHP error_reporting(0) int error_reporting([int $level]) $level:新的error_reporting级别。 返回值:返回旧的error_reporting级别,或者在level参数未给出时返回当前的级别。 error_reporting( 阅读全文
posted @ 2022-11-29 11:29 哆啦阿梦 编辑
摘要:函数简介 PHP ini_set用来设置php.ini的值,在函数执行的时候生效,脚本结束后,设置失效。无需打开php.ini文件,就能修改配置,对于虚拟空间来说,很方便。 函数格式:string ini_set(string $varname, string $newvalue) 作用域 PHP总 阅读全文
posted @ 2022-11-29 11:23 哆啦阿梦 编辑
摘要:在看帝国cms的connect.php是发现第一句是error_reporting(E_ALL ^ E_NOTICE);以前也没注意过这个语句,知道是设置错误提示的,但不清楚具体怎样设置使用。下面从网上摘抄了些东西,总结了一下。 举例说明: 在Windows环境下:原本在php4.3.0中运行正常的 阅读全文
posted @ 2022-11-29 11:20 哆啦阿梦 编辑
摘要:运行PHP项目时,一直弹出这个提示 Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warnin 阅读全文
posted @ 2020-03-15 08:42 哆啦阿梦 编辑
摘要:前提:通过jquery向服务器提交AJAX申请 结果:获取服务器返回值,并在JS内调用 index.js function test(){ var url="http://www.test.com/22.php"; var dt={"id":123}; $.post(url,dt,function( 阅读全文
posted @ 2019-11-12 20:53 哆啦阿梦 编辑

点击右上角即可分享
微信分享提示