Menu

#8 Problems with realpath()

open
nobody
None
5
2008-08-09
2008-08-09
Anonymous
No

In wrapper.php, you're using $HTTP_SERVER_VARS['SCRIPT_FILENAME'] in $filesystem_root_path but realpath($HTTP_SERVER_VARS['SCRIPT_FILENAME']) in $filesystem_pAG_path_abs.
As realpath() resolves symlinks the other handling code doesn't construct a proper $filesystem_pAG_path_abs causing a file not found error if you have symlinks in the path to SCRIPT_FILENAME (i.e. /htdocs -> /var/www)
Resolve this by adding a realpath() call in assignment of $filesystem_root_pat

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.