Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
php script to listout only directories of specific folder
kushal33
Feb 1st, 2016
46
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
PHP
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
<?php
$dir
=
array_diff
(
scandir
(
"./"
)
,
array
(
'..'
,
'.'
)
)
;
foreach
(
$dir
as
$key
=>
$value
)
{
if
(
is_dir
(
$value
)
)
{
$folder
[
]
=
$value
;
}
}
echo
json_encode
(
$folder
)
;
?>
Add Comment
Please,
Sign In
to add comment
Public Pastes
scProj
SuperCollider | 19 min ago | 4.45 KB
Random Motion @ Random Time
JavaScript | 26 min ago | 0.69 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 29 min ago | 0.39 KB
CHECK-IPTV-TEXT.pyw
Python | 45 min ago | 2.93 KB
localhost
Python | 1 hour ago | 8.06 KB
mining program
Lua | 1 hour ago | 0.16 KB
2024-05-16_stats.json
JSON | 1 hour ago | 4.49 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 1 hour ago | 0.38 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!