php
pear2007
欢迎结交Linux、php 相关的技术网友
展开
-
PHP 配置 之 auto_prepend_file
auto_prepend_file原创 2022-05-24 09:09:18 · 1076 阅读 · 0 评论 -
php递归树型数组
php树形数组改造原创 2022-01-24 13:52:42 · 197 阅读 · 0 评论 -
PHP将Base64图片转换为本地图片并保存 图片不显示或失败
https://blog.csdn.net/qq_28137309/article/details/91126846最近用到 base64 转存服务上做背景图片用 图片上传经常出错 大神的代码没有错啊对比代码发现rRP3 J//9k= 失败代码rRP3+J//9k= 转换后的代码 if (file_put_contents( $upload_path. $new_file, base64_decode( str_replace ( " ","+" ,str_replace(...原创 2020-07-19 10:01:06 · 920 阅读 · 0 评论 -
Yii2 路由问题-- nginx配置隐藏入口文件index.php
location / { # Redirect everything that isn't a real file to index.php try_files $uri $uri/ /index.php$is_args$args; }默认的phpstudy站点管理没写 这段 根据 Yii2官方的 nginx 配置文件加上这段即可...原创 2019-03-08 09:12:22 · 1282 阅读 · 0 评论 -
阿里 oss 出现 RequestId 错误处理方法
OSS\Core\OssException: RequestId: 5B20DC9196C006EE6FE2E81A阿里 oss 出现 RequestId 错误处理方法怎么找都没有发现问题 最后发现时间不对 修改系统时间OK希望能帮到 大家...原创 2018-06-13 17:00:51 · 22148 阅读 · 10 评论 -
the requested PHP extension dom is missing from your system
centos 7 composer 出错 the requested PHP extension dom is missing from your system解决办法 yum install install php70w-xml原创 2017-11-26 14:41:35 · 6863 阅读 · 0 评论 -
nginx phalcon 7 php7 No input file specified.
症状 :No input file specified. 解决办法 增加红色的 root 部分重启 nignx 搞定 server { listen 80; server_name df.cms www.df.cms; charset utf-8; #access_log /var/log/nginx/host.ac原创 2017-08-29 16:29:12 · 1574 阅读 · 0 评论 -
phalcon wamp sever 3.06 安装 phalcon 和 mogodb 扩展遇到的坑
php 扩展安装 extension=php_phalcon.dll extension=php_mongo.dll原创 2016-09-26 09:52:24 · 1022 阅读 · 0 评论 -
YII2 Gii 服务器上不能访问
YII2 Gii 服务器上不能访问原创 2015-11-27 10:46:53 · 2460 阅读 · 0 评论 -
yii2 一对多:hasMany 一对一:hasOne
hasMany、hasOne使用 Yii2中的表之间的关联有2种,它们用来指定两个模型之间的关联。一对多:hasMany一对一:hasOne返回结果:这两个方法的返回结果都为yii\db\ActiveQuery对象第一个参数:所关联的模型的类名称。第二个参数:是一个数组,其中键为所关联的模型中的属性,值为当前模型中的属性。原创 2015-11-25 09:53:37 · 13094 阅读 · 0 评论 -
yii2 ListView 中的 样式修改
yii2 ListView 中的 样式修改 <?= DetailView::widget([ 'model' => $model, 'attributes' => [// 'id', 'title',// 'pid', 'content:raw原创 2015-11-22 21:27:22 · 811 阅读 · 0 评论 -
Yii2 百度编辑器小部件
Yii2 百度编辑器小部件Ueditor.php<?phpnamespace common\components;use yii\helpers\Html;use yii\helpers\Json;use yii\widgets\InputWidget; /* * 创建百度编辑器插件 * 2015年11月22日12:41:25 * 滴水湖 宜浩佳园 11原创 2015-11-22 21:46:05 · 1170 阅读 · 0 评论 -
YII2 MetaTag 的实现方式
先上代码 /* @var $this yii\web\View */$this->registerMetaTag(['name' => 'keywords', 'content' => 'keywords']);?>参数值写在最后一个 keywords 例如 $model->keywords;原创 2015-11-22 21:34:37 · 604 阅读 · 0 评论