TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
How to Get File into Folder using PHP
Bhushan Singh
Oct 10
2014
Code
1.7
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
getfile.zip
<?php
$files
=
glob
(
"images/*.*"
);
// if you get specific file change file extension eg : glob("file path /*.jpg") .
print_r(
$files
);
?>
<br>
<select id=
"count_number"
>
<option value=
""
>Choose</option>
<?php
foreach
(
$files
as
$filename
)
{
$arr
=
explode
(
"/"
,
$filename
);
?>
<option value=
""
><?php
echo
$arr
[1]; ?></option>
<?php
}
?>
get file using php
PHP