简体   繁体   English

我在 php 中找不到 windows 便携式设备

[英]I can not find windows portable devices in php

I want to browse my digital camera by php codes, to transfer pictures from camera to my server, but I can't find true location of pictures.我想通过php代码浏览我的数码相机,将图片从相机传输到我的服务器,但我找不到图片的真实位置。

when i use当我使用

is_dir('C:\My Piictures\000012.jpg')

its work good.它的工作很好。

But when I use但是当我使用

is_dir('Computer\D90\Removable storage\DCIM\100NCD90\DSC_0007.JPG')

Its not working它不工作

How can i fix this ?我怎样才能解决这个问题 ?

You can't access media deivce in PHP in Windows (In Linux that is not a problem).您无法在 Windows 中使用 PHP 访问媒体设备(在 Linux 中这不是问题)。

You should copy your files to a hard drive, or connect your camera as Removable Media, not a media device and assign a drive letter (for example E: ).您应该将文件复制到硬盘驱动器,或将您的相机作为可移动媒体而不是媒体设备连接并分配驱动器号(例如E: )。

After that it would work with之后它将与

is_dir('E:\DCIM\100NCD90\DSC_0007.JPG');

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM