I\'m in the process of transferring my website from one server to another. I have some php scripts that use the is_readable function which uses the current working director
This is normal in CLI mode:
It does not change the working directory to that of the script. (-C and --no-chdir switches kept for compatibility)
a quick workaround would be
chdir(dirname(__FILE__));