Closed GoogleCodeExporter closed 9 years ago
update: this is because get_document_root is checking here
C:/WebFolders/mysite/C:/WebFolders/mysite/images/cache/e59056c208628b623b7392110
a368acb.jpg
have i set my cache path wrong?
Original comment by dal...@gmail.com
on 5 Dec 2010 at 11:59
i want to set my cache to /images/cache under the document root. i had set
DIRECTORY_CACHE to $_SERVER['DOCUMENT_ROOT'].'/images/cache' - was this not
correct?
Original comment by dal...@gmail.com
on 6 Dec 2010 at 12:02
i think all my errors are related to running it on windows. i uploaded to my
unix server and it works fine.
Original comment by dal...@gmail.com
on 6 Dec 2010 at 3:07
[deleted comment]
An issue I've found is that the path building in get_document_root uses
array_diff() which can fail if there is a duplicate folder name within the
document root. A better way to handle this is something more along the lines
of:
$parts = explode('/', substr($_SERVER['SCRIPT_FILENAME'],
strlen($_SERVER['DOCUMENT_ROOT'])));
Original comment by ITProSt...@gmail.com
on 4 May 2011 at 6:21
Original comment by BinaryMoon
on 20 Jun 2011 at 3:44
Original issue reported on code.google.com by
dal...@gmail.com
on 5 Dec 2010 at 11:43