Like SystemiConnectFri 15 Oct 2021, 04:50
Auto Save MessagesLGforumFri 26 Feb 2021, 13:31
New tutorial questionTheCrowMon 15 Feb 2021, 08:12
Support iOS Emojis (and other platforms)LGforumSun 14 Feb 2021, 01:25
LGforum (2806)
Read any available data in directory Vote_lcapRead any available data in directory Voting_barRead any available data in directory Vote_rcap 
Mr.Easybb (1587)
Read any available data in directory Vote_lcapRead any available data in directory Voting_barRead any available data in directory Vote_rcap 
Bloodbath (745)
Read any available data in directory Vote_lcapRead any available data in directory Voting_barRead any available data in directory Vote_rcap 
Rukiafan (533)
Read any available data in directory Vote_lcapRead any available data in directory Voting_barRead any available data in directory Vote_rcap 
Dom (513)
Read any available data in directory Vote_lcapRead any available data in directory Voting_barRead any available data in directory Vote_rcap 
puppycheese (446)
Read any available data in directory Vote_lcapRead any available data in directory Voting_barRead any available data in directory Vote_rcap 
pedro (330)
Read any available data in directory Vote_lcapRead any available data in directory Voting_barRead any available data in directory Vote_rcap 
Neymar (301)
Read any available data in directory Vote_lcapRead any available data in directory Voting_barRead any available data in directory Vote_rcap 
Hitsu (281)
Read any available data in directory Vote_lcapRead any available data in directory Voting_barRead any available data in directory Vote_rcap 
Flora (275)
Read any available data in directory Vote_lcapRead any available data in directory Voting_barRead any available data in directory Vote_rcap 


Read any available data in directory

avatarNewbie JS
Status : No status yet...

Posts : 30
Join date : 2015-01-23
Age : 35
Location : England
Fri 23 Jan 2015, 13:17
Hey there, I'm currently working on some website myself that will does photo album and such. Some simple question that I want to ask is, is it possible to read any available data in some directory so I can load the data that are readied? No, I don't want the script to load the data from the directory, I just want to read any available data in some specific directory ... I've already known how to load it ... already read the file() , file_get_contents() , file_exists() but still not sure what the correct function to do this ...

Any ideas ?
HitsuHitsu
Status : Finished on working fmAPI.

Posts : 281
Join date : 2013-09-09
Age : 25
Location : Indonesia
Fri 23 Jan 2015, 13:25
You'll need to select the directory. That was something like [ic]$directory = '/path/to/directory/here/[/ic] or something like that, then do the rest. Ah, I've misread something. Lol. Razz

I think this is what are you currently looking for. Am I right, Newbie JS? Sorry if there's some abuse taken, I'm not abusing you.. since that's your username then I've just called you that if you'll don't mind. Lol Razz
BloodbathBloodbath
Status : No status yet...

Posts : 745
Join date : 2013-05-31
Age : 28
Fri 23 Jan 2015, 22:44
Code:
<?php
$dirres = opendir(string $path);
$dircontent = readdir(&$dirres);
echo sprint("<pre>%s</pre>",var_dump($dircontent));
?>
avatarNewbie JS
Status : No status yet...

Posts : 30
Join date : 2015-01-23
Age : 35
Location : England
Sun 25 Jan 2015, 01:21
@Hitsu yep that's what I'm currently looking for now ... but I'm not really sure how to use it

@Bloodbath YUP! That's what I'm currently looking for. Thanks for your help ww
avatarGuest
Thu 05 May 2016, 06:00
Solved and archived.
Sponsored content