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.
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).
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:
).
After that it would work with
is_dir('E:\DCIM\100NCD90\DSC_0007.JPG');
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.