unable to open a folder

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
khalidanwar123
Forum Newbie
Posts: 8
Joined: Sun Nov 23, 2008 5:34 am

unable to open a folder

Post by khalidanwar123 »

I am unable to open a huge folder (in TB's). Is there any way to open it using shell commands ?
I hope i will get some help from here .

Thanks
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

Re: unable to open a folder

Post by panic! »

what do you mean by open?

Open in a GUI? List contents?


To list a directories contents in Unix-like systems (Mac OS X, Linux, BSD).


ls -l /path/to/folder
khalidanwar123
Forum Newbie
Posts: 8
Joined: Sun Nov 23, 2008 5:34 am

Re: unable to open a folder

Post by khalidanwar123 »

Is there any way in php to read a folder file names.
The folder size is huge in terabytes.
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

Re: unable to open a folder

Post by panic! »

Code: Select all

 
<?
 
exec("ls /",$result);
 
 
foreach($result as $file)
{
    print "$file<br/>";
}
?>
 
 
Post Reply