Re: readdir and mime types

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

 



Graham,

Is safe mode enabled in your config file?  If safe mode is on, PHP will
check the file to ensure it is owned by the same user executing the
script.  If this condition fails, file_exists() will not work on the file.

http://php.net/file_exists
http://php.net/manual/en/features.safe-mode.php

Cheers,

David Grant

Graham Cossey wrote:
> [snip]
>> Make sure to always hit reply-all, or the e-mail will not go back to the
>> list.
> 
> Yep, realised that after hitting 'send'. :-(
> 
>> If file exists is looking for an associated files is it probable that the
>> .mpg files do not have one associated with it in the other directory?
> 
> It is probable, that's why the check is there, but in this case the
> associated file(s) definitely does exist. If I simply change the file
> extensions from mpg to avi the script works.
> 
> 
> --
> 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