i will tray install "Rayzz" clone , this is windows hosting,
this is code where i have problem in config.inc.php
$default_ports = array('https' => 443, 'http' => 80);
$prefix = (!empty($_SERVER['HTTPS']) ? 'https' : 'http');
$host = '';
if (isset($_SERVER['HTTP_HOST'])) //some says that this might not be set in IIS
$host = $_SERVER['HTTP_HOST'];
else if (isset($_SERVER['SERVER_NAME']))
$host = $_SERVER['SERVER_NAME'];
$CFG['site']['url'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
. $host
. str_replace(
array('common/', 'members/', 'admin/', 'cron/', 'rss/'),
'',
substr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '/')+1)
);
$CFG['site']['relative_url'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
. $host
. substr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '/')+1);
$CFG['site']['current_url'] = $prefix.
(($_SERVER['SERVER_PORT']!=$default_ports[$prefix]) ?
':'.$_SERVER['SERVER_PORT'] : '') . '://'
.$host
.$_SERVER['REQUEST_URI'];
and whats is mean with this "//PATH_TRANSLATED is removed in SAPI version since PHP 5 or 4.3.2?? Don't use it for auto detection "
i run on my Plesk PHP 5