1

I am developing under wamp.

echo realpath(APPPATH);

C:\wamp\www\salsaritmo\system\application

echo realpath(APPPATH . '..');

C:\wamp\www\salsaritmo\system

echo realpath(APPPATH . '../files');  //(which is the one i want)

returns nothing

Babak
  • 279
  • 1
  • 7
  • 16

2 Answers2

1

Your APPPATH doesn't end with a directory separator, so you're ending up trying to realpath('C:\wamp\www\salsaritmo\system../files'), which obviously isn't valid. Try:

   echo realpath(APPPATH . '/../files');
rkulla
  • 2,494
  • 1
  • 18
  • 16