RE: [PHP] header(Location: question

2004-03-01 Thread Chris Sandy
Your directing the client to another site. So yes this will work.

-Original Message-
From: John [mailto:[EMAIL PROTECTED] 
Sent: Sunday, February 29, 2004 6:11 PM
To: [EMAIL PROTECTED]
Subject: [PHP] header(Location: question

when you use a command like this:
header(Location:
http://www.highbandwidhtmirror.com/videos/download.mpg;);

Is the user downloading off the mirror site or is your server
downloading
from the mirror and passing on to the end user. I want to save bandwidth
by
having mirror urls of funny videos, so will this work?

--
**
Free Nokia Ringtones US
http://www.ring-tones.us
**

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Header Location Question

2001-02-06 Thread David Robley

On Wed,  7 Feb 2001 13:27, Jeff Oien wrote:
 I have the code below within a larger web page which is
 like a portal. When I submit the form, I get this message:

 
 Warning: Cannot add header information - headers already sent by (output
 started at c:\apache\htdocs\index1.php3:9)
 

 Can I get it to take me to the BigCharts site and leave the
 page I'm on? Thanks.
 Jeff Oien

 
 ?php

 print "form method=\"post\" action=\"$PHP_SELF\"";
 print "Symbolbr";
 print "input type=\"Text\" size=\"5\" name=\"symbol\"br";
 print "INPUT type=\"hidden\" name=\"op\" value=\"ds\"";
 print "input type=\"Submit\" value=\"Chart\"";

   if ($op == "ds") {
   $url = 'http://www.bigcharts.com/quickchart/quickchart.asp?symb= .
 $symbol'; header ("Location: $url");
   }
 ?

If you are going to use header, you _must_ make sure that nothing is output 
to the server, not even white space or blank lines, before the header 
function is called.

-- 
David Robley| WEBMASTER  Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
AusEinet| http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]