Menu

#16 install fails due $_SERVER[SCRIPT_FILENAME]

open
nobody
None
5
2007-05-04
2007-05-04
Anonymous
No

Win XP PHP 4.x

install.php fails at line 1071

Script creates $survey_dir variable from
$_SERVER[SCRIPT_FILENAME] at line 628.

On Windows, this is often NOT the name of the script running, but rather the location and name of PHP.exe
eg. C:\PHP\PHP.EXE

This completely screws the installation, as the survey dir should in fact be the directory the installation script is running in eg. c:/htdocs/OSP, and the install.php ends up trying to create php.exe directory in the php bin directory ie. where a php.exe file exists already.

__FILE__ might be better than $_SERVER[SCRIPT_FILENAME]
although I've made the 3 changes in include.php, still won't work.

from: info@blad.com.au

Discussion


Log in to post a comment.