我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

消息:mkdir():codeigniter上的权限被拒绝

i have error when creating folder by using mkdir() on my codeigniter getting this error:

Message: mkdir(): Permission denied

and this my code

$path = './upload_file/';
$idtrx = $_POST['id_trx'];
$dir = $path.$idtrx;
mkdir($dir,0777,TRUE);

can anyone helps me??

Hope this will help you :

$file_path = FCPATH.'upload_file/'.$_POST['id_trx'];

if(!is_dir($file_path)) @mkdir($file_path, 0777, true); 

近期文章

  • 通过Ajax加载后,PHP表单将不会提交
  • 如何使用Mysql和PHP获取当前本地时间?
  • 如何从PHP中删除数组中的元素
  • 如何在单个会话期间更改数据库
  • Behat + Symfony,未加载自定义定义
  • 温和多个独特的Facebook评论框?
  • 在php中从服务器在我的网站上显示图像
  • 查找数组中图像的重复值
  • 无法在Ubuntu 12.04中使用PHP移动文件
  • 发送附带电子邮件的文件时出错(HTML + PHP)
  • 从PHP中的函数返回连接字符串
  • 如何使用不同的URI使全局页面
  • 将多个值从js页面传递到php页面
  • 如何回显MySQL数据库中的换行符?
  • PEAR安装错误:dyld:库未加载
  • 在CodeIgniter上使用未定义的常量通知
  • codeigniter rest api身份验证不起作用
  • 在消息本身中发送gcm消息的计数
  • 您如何查看订单中的库存情况?
  • 使用PHP将JSON数组添加到MySQL数据库

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华