Moderators: jmacgreg, michael, John
makos wrote:Hi again,
In the _server["SCRIPT_NAME"] it shows "/php/php.exe" (without the ") and in the _sever["SCRIPT_FILENAME"] it shows "D:/miservidor/php/php.exe" (without the " too), that is the path where I suppose I have installed php. When I tried to install ocs through the console install tool I did it from there.
Marcos
function getBasePath() {
static $basePath;
if (!isset($basePath)) {
$basePath = dirname($_SERVER['SCRIPT_NAME']); <------------ Change this line
if ($basePath == '/' || $basePath == '\\') {
$basePath = '';
}
HookRegistry::call('Request::getBasePath', array(&$basePath));
}
return $basePath;
}$basePath = dirname($_SERVER['PHP_SELF']);
or if that doesn't work either, then you can hardcode the right path:
$basePath = '/ocs2';Return to OCS Technical Support
Users browsing this forum: No registered users and 2 guests