realpath() returns empty string
Posted on 2012-09-17
I'm looking at a project for a client and I've noticed that realpath() is returning an empty string?
defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
Does anyone know why this might be? The site is hosted on a cloud hosting solution, could that have something to do with it as I read somewhere that realpath only works if you have certain permissions on folders?