Question about check correct hostname in header.in

 

Hello,

in the file in/inc/header.inc.php

I find this piece of code

 

//check correct hostname

$aUrl = parse_url( $site['url'] );

if( isset($_SERVER['HTTP_HOST']) and 0 != strcasecmp($_SERVER['HTTP_HOST'], $aUrl['host']) and 0 != strcasecmp($_SERVER['HTTP_HOST'], $aUrl['host'] . ':80') )

{

header( "Location:http://{$aUrl['host']}{$_SERVER['REQUEST_URI']}" );

exit;

}

I wonder what it is

because one of my page it displays an error because this code

Warning: Cannot modify header information - headers already sent by (output started at /home/me/public_html/index.php:1) in /home/me/public_html/mypage/inc/header.inc.php on line 125

So I wonder if I can delete

Free Dating Site on: http://coolonweb.com
Quote · 29 Nov 2010

NO.. And I would suggest editing the index.php and header.inc.php file and see if there is any "whitespace" after the closing ?> at the end of each file.

so if you use an editor that has numbering, you may see something like this at the end of the file (just an example)

 

145. }

146. ?>

147.

148.

 

Lines 147 and 148 would need to be deleted.. Once deleted re-upload the file and try again.

Nothing to see here
Quote · 29 Nov 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.