You are here: Re: [PHP] readdir and mime types « PHP « IT news, forums, messages
Re: [PHP] readdir and mime types

Posted by David Grant on 11/22/05 16:58

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
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация