Vadim Akselrod wrote:

> I upgraded to 4.2.3, but am having file access problems.
> 
> If I access a file by full path, it works fine.
> If I access a file in the local dir, it fails.  Even though getcwd() is
> the same as the full path above.
> 
> Any ideas?  This is on redhat 7.2.  Thanks!
> 
> Cheers,
> 
> -Vadim
> 
> PS: Here's the code that fails:
> 
> $file = "test";
> if(!is_writable(getcwd() . "/" . $file))... // works
> if(!is_writable($file))... // fails

Check out the access rights (in php.ini e.g.)
it is different to access a complete path and a relative path,
even if they point to the same file! (like for include())
you have to have a r/w access to '.' if to use the second version
(which may be dangerous!) so better to go through the hassle with the full 
path!

regards
Bodo

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

Reply via email to