如何从文件夹中检索图片 [英] How Can I Retrieve Picture From Folder
本文介绍了如何从文件夹中检索图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想构建用户输入rollno的页面,并且从具有相同rollno名称的文件夹中检索图片,例如(< rollno> .jpg)我将使用< rollno> .jpg保存图片
在结果文件夹中
唯一要做的就是用用户输入的相同rollno检索图片
plz帮我解决
I want to build page where user enters his rollno and the pic is retrieved from folder with having same rollno name eg(<rollno>.jpg) i will save pic with <rollno>.jpg
in results folder
the only to do is retrieve the pic with same rollno entered by user
plz help me out
推荐答案
正如你在这里标记了php所以这个php中的方法会有所帮助:
As you have tagged php here so this method in php will help:
//path to directory to scan
目录 = mytheme / images / myimages;
// 获取所有带.jpg扩展名的图片文件。
directory = "mytheme/images/myimages"; //get all image files with a .jpg extension.
images = glob(
images = glob(
这篇关于如何从文件夹中检索图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文