Re: I'm a newbie and running php on Linux

From: Date: Wed, 31 Mar 2010 16:41:09 +0000
Subject: Re: I'm a newbie and running php on Linux
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-303689@lists.php.net to get a copy of this message
Check your php.ini , look for output_buffering 2010/3/31 King Coffee <kcoffee@hotmail.com>: > Hi, > > I ran the following code snippet on Windows IIS 7, in my index.php file and > it worked fine. But when run it on Linux, the "die" code is executed. > > Is there an include file or something else I need to to process this on a > linux server? > > <?php >        echo '<h1>Redirecting... Please Wait</h1>'; > /* >        redirect('welcome.html'); > */ >        if (!headers_sent()) { >                header('Location: ' . > 'http://auction.househops.com/index.php'); >        } else { >                die('Could not redirect.'); >        } > ?> > > > Thanks, > King > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#303689) next »