readdir and mime types

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm attempting to read a list of files in a directory using readdir()
but am having problems with mpeg files not seemingly being read.

Cope snippet:

	$count = 0;
	while (false !== ($file = readdir($open_dir)))
	{
        if ($file != '.' && $file != '..')
        {
            if (file_exists("$VID_DIR/$file"))
            {
				$count++;

$count counts any 'avi' files but not 'mpg' files.

Any suggestions much apreciated.

--
Graham

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux