I have 2 folders: /var/www/vhosts/mydomain.com/httpdocs/ and /var/www/vhosts/mydomai开发者_JAVA百科n.com/httpdocs/duh/
I have the following code // Define the full path to your folder from root $path = \"../galleries/\".$album;
I wrote a script in php that allows me to get a list of files in a directory as an array, parse each one for a particular string, and then it displays all of the files that contain the search string.
Which is faster betw开发者_如何学JAVAeen glob() and opendir(), for reading around 1-2K file(s)?http://code2design.com/forums/glob_vs_opendir
Can someone tell me, why the \"opendir\" doesn\'t work? #!/usr/bin/env perl6 use v6; my $file = \'Dokumente/test_file\';