balufreak
Aktives Mitglied
Thread Starter
- Dabei seit
- 12.10.2003
- Beiträge
- 1.563
- Reaktionspunkte
- 28
Hallo Leute,
Hab mal wieder ein PHP Problem.
Ich habe folgendes:
index.php
appHelper.class.php
diese Konstellation führt mich zu folgendem Fehler:
Warning: Cannot modify header information - headers already sent by (output started at D:\xampplite\htdocs\workspace\***\classes\appHelper.class.php:1) in D:\xampplite\htdocs\workspace\***\classes\appHelper.class.php on line 13
Warum zum Teufel funktioniert das nicht?
Hab mal wieder ein PHP Problem.
Ich habe folgendes:
index.php
PHP:
<?php
session_start();
//...
function __autoload($class) {
require_once('./classes/.$class.'.class.php');
}
appHelper::redirectTo('http://www.google.com');
?>
PHP:
<?php
class appHelper {
//...
public static function redirectTo($url) {
header('Location: '.$url);
}
}
?>
diese Konstellation führt mich zu folgendem Fehler:
Warning: Cannot modify header information - headers already sent by (output started at D:\xampplite\htdocs\workspace\***\classes\appHelper.class.php:1) in D:\xampplite\htdocs\workspace\***\classes\appHelper.class.php on line 13
Warum zum Teufel funktioniert das nicht?