[thelist] meta = HTTP EQUIV = "refresh"

Joe Crawford jcrawford at avencom.com
Tue Jul 17 18:08:45 CDT 2001


Charlie Llewellin wrote:
> Well, it should be
> header("Location: http://newurl");
> (was missing opening quotes)
> 
> As long as you are not sending anything to the browser(e.g, whitespace)
> before this (in which case you would get an error message) it should work
> fine.

Yes, anytime you send a header with php you have to be mindful of that
whitespace issue. No newlines, no tabs, no spaces. See:
http://www.php.net/manual/en/function.header.php

Some other ways to do the same thing...

Perl:
#!/usr/bin/perl
print "Location: http://evolt.org/\n\n";

PHP:
<? header ("Location: http://evolt.org/"); ?>

Cold Fusion:
<cflocation url="http://evolt.org/">

ASP:
<% Response.Redirect( "http://evolt.org" ) %>

	- Joe
-- 
...................  Joe Crawford \\ Web Design & Development
.....  mailto:jcrawford at avencom.com \\ http://www.avencom.com
.... San Diego \\ CA \\ USA \\ AVENCOM: Set Your Sites Higher




More information about the thelist mailing list