You are here: Re: 2nd pair of eyes, simple ? « PHP Programming Language « IT news, forums, messages
Re: 2nd pair of eyes, simple ?

Posted by Jim Michaels on 01/24/06 05:32

"Kimmo Laine" <spam@outolempi.net> wrote in message
news:dqtuto$nc2$1@phys-news4.kolumbus.fi...
> "one man army" <newsAT@screenlightDOT.com> kirjoitti
> viestissδ:newsAT-93926C.08475321012006@newsclstr02.news.prodigy.com...
>> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>> "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
>>
>> <?php
>> $debug=0;
>> ini_set('display_errors', 1);
>> ini_set('safe_mode', 'FALSE');
>>
>> error_reporting(E_ALL & ~E_NOTICE);
>> ?>
>>
>> <?php
>> $zipRaw = $_GET['zipRaw_name'];
>> if ( !empty($zipRaw) ) {
>>
>> $valid = $zValid = true; //checkLength($zipRaw, 1, 5);
>>
>> if ($valid) {
>> header( "Location:http://www.yahoo.com");

try inserting a space between Location: and http

also, your header call should come before any HTML or a blank line is
displayed. your <?php with the header call should be at the tippy top of
the file.
once the broswer sees a blank line or HTML, that's it - headers are over.


>> exit;
>> } else {
>> echo( "<html><head></head><body> zipRaw = ");
>> echo( $zipRaw );
>> echo( " <br></body>" );
>> }
>> }
>> ?>
>>
>> -------- or print() in place of echo()
>>
>> verbatim, same results. The Browser shows
>>
>>
>> zipRaw = "); echo( $zipRaw ); echo( "
>> " ); } } ?>
>
> The header won't work because the code sends output before setting the
> header. (Headers must be set before any outpyt, and the doctype is the
> first output you send. On the other hand, it doesn't give you error of
> headers already been sent therefore I submit that your php code is never
> executed for one reason or another. Like I already said once, check the
> SOURCE CODE when you view the result in the browser - I bet that you see
> the original php code as it is.
>
> --
> SETI @ Home - Donate your cpu's idle time to science.
> Further reading at <http://setiweb.ssl.berkeley.edu/>
> Kimmo Laine <antaatulla.sikanautaa@gmail.com.NOSPAM.invalid>
>

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация