Re: Location ....

From: Date: Fri, 30 Dec 2005 20:16:56 +0000
Subject: Re: Location ....
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-228040@lists.php.net to get a copy of this message
On Fri, 2005-12-30 at 15:04, Richard Lynch wrote: > On Wed, December 28, 2005 8:15 am, Christian Ista wrote: > > PHP? I tried this code : header("Location: mypage.php"); > *LOL* That was one of the best write-ups I've ever read concerning the headers already sent error message. > Similarly, watch out for BLANK LINES after the last ?> in your files. > > They will trip you up for header() Regarding that last ?> in scripts, the PHP engine intentionally supports it's omission so that you don't have to think about whether there's an invisible trailing space after it. Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------'

« previous php.general (#228040) next »