i have php code which was working in Mavericks, then i updated my system to Yosemite, apache 2.4.9 (unix) is installed in yosemite, now when i run my code, i got this error:

```
Warning: Cannot modify header information - headers already sent by (output started at /Library/WebServer/Documents/odnoklasniki/indexSingle.php:10) in /Library/WebServer/Documents/odnoklasniki/indexSingle.php on line 125

```

in 125 line, i have this code:

```
header('Location: http://www.odnoklassniki.ru/oauth/authorize?client_id='.$AUTH['application_key'].'&scope=PHOTO_CONTENT&response_type=code&redirect_uri=http://localhost/odnoklasniki/indexSingle.php');

```

before it was working in mavericks.

Code:

```
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <link href="http://www.odnoklassniki.ru/oauth/resources.do?type=css" rel="stylesheet">
</head>
<body>

<?php
    if (statement true) {
        **** // i have some echo's here, i tried by removing them
    } else {
        header('Location: http://www.odnoklassniki.ru/oauth/authorize?client_id='.$AUTH['application_key'].'&scope=PHOTO_CONTENT&response_type=code&redirect_uri=http://localhost/odnoklasniki/indexSingle.php');
    }
?>

</body>
</html>

```