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

文件存在于PHP中,带有日文字符

I have a file in あ.gif under images folder. Now I want to check file exist or not but the japanese character was not accepting and it return output as false, But there is a file in あ.gif

Here is my code...

$path    = $WRITING_IMG_PATH;
$file    = "あ.gif";
$fullfilename =$path.$file;
if (file_exists($file)) {
    echo $file;
} else {
    echo "No file";
}

In my code it returns false, if there is file in that images folder.

近期文章

  • 调用未定义的方法Illuminate \ Auth \ GenericUser :: hasFriendRequestPending()
  • 单击时如何自动更改选项标签的选定项目
  • 如何从两个表中查找字段中的重复值以及它本身?
  • PHP Laravel 5.3
  • symfony doctrine自定义dql
  • 在PHP上使用Session
  • php Drupal 7.54设置aws elasticbeanstalk
  • Symfony命令的责任是什么?
  • 上传图片并在Codeigniter中显示
  • 下拉菜单无法从Postgres加载数据
  • 基于QUERY_STRING重写规则
  • Laravel 5.x包中的自定义错误消息
  • 获取特定产品的所有父类别
  • CAPTCHA未正确验证
  • PHP datetime format()日期不正确
  • JAVA怎么让计时器一开始就运行
  • 由PHP shell_exec触发的Xvfb中运行新的Firefox崩溃
  • 如何使用预先加载来对laravel中的多对多关系进行分页
  • 如何在codeigniter中使用PHP为CRUD等函数创建用户规则
  • Nginx配置多个Yii2高级项目位置(部署开发)

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华