[snip]
I'm trying to add a variable to the end of a directory listing.

This will give me the root directory and show me all the files
        exec('ls /home/httpd/vhosts/sitename.com/httpdocs/resumes/',
$filelist);
[/snip]

Have you thought about using 

http://us4.php.net/manual/en/function.opendir.php

example;

$cdrdirectory = opendir("/usr/local/crm/cdr/");
    while($cdrtxt = readdir($cdrdirectory)){
        if(($cdrtxt <> ".") && ($cdrtxt <> "..") && ($cdrtxt <>
"cdrzip")){
            ...do stuff...
        }
    }
closedir($cdrdirectory);

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to