Reply to Re: php redirect doesnt work

Your name:

Reply:


Posted by Jerry Stuckle on 10/08/07 11:55

Wings wrote:
> "Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
> news:KoadnU6EQZ83BJTanZ2dnUVZ_vamnZ2d@comcast.com...
>> Jack wrote:
>>> Hi,
>>> I have a problem that I've been stuck on for while now.
>>> Here is my code
>>>
>> <snipped>
>>
>> Jack,
>>
>> First of all, enable all errors and display errors in your PHP.INI file.
>> If you don't have access to this file, you can use ini_set to set them,
>> but it's much easier to do it in the php.ini file (also this way works
>> even if you have syntax errors in your code).
>>
>> Once you get this, I'm pretty sure you'll get a message about "header
>> already sent...". I don't remember the exact message off hand (you'd
>> think I would, the number of times I've seen it! :-) ), but it comes
>> because you've send output before this time. It could only be blank
>> space - but you've sent SOME data.
>>
>> And you should also get a message indicating "output started in file xxx
>> at line yyy". This is where you need to took to find why output has
>> previously been sent.
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstucklex@attglobal.net
>> ==================
>
> Jerry,
> I'm not a coder, but in installing php scripts I've run into that "header
> already sent" quite a number of times. For me, a non-coder, that meant I had
> to dispense with the script and go look for another.
> Do you know a reason or two "why?" - something that a non-coder might find
> and fix?
> Thanks in advance.
>
>

It means you've sent output (even white space) to the client before the
call to session_start() or similar call.

If you want to play with PHP, I highly recommend you learn some of the
basics. No language is completely "plug and play". There will be
problems at times, but most do not require an expert to fix. They do,
however, require someone with knowledge of the language.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[Back to original 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

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация