my linux system has PHP,Apache and postgres installed.When i access webapplication via browser typing
http://localhost/app the PHP is running from a different working directory,and all reference of directories starting with ./directoryname/ fails to find actual path.But when php cammand is issued from Applications directory PHP pages are correctly parsed...why is so happening?