Click here to Skip to main content
15,303,377 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
Questionmake tab&menu Pin
Elham M5-Feb-11 5:59
MemberElham M5-Feb-11 5:59 
AnswerRe: make tab&menu Pin
Eddy Vluggen19-Feb-11 3:05
professionalEddy Vluggen19-Feb-11 3:05 
QuestionProblem with PHP - FastCGI - Headers Pin
Lea Hayes4-Feb-11 13:51
MemberLea Hayes4-Feb-11 13:51 
AnswerRe: Problem with PHP - FastCGI - Headers Pin
Peter_in_27804-Feb-11 14:25
professionalPeter_in_27804-Feb-11 14:25 
GeneralRe: Problem with PHP - FastCGI - Headers Pin
Lea Hayes5-Feb-11 3:30
MemberLea Hayes5-Feb-11 3:30 
GeneralRe: Problem with PHP - FastCGI - Headers Pin
Peter_in_27806-Feb-11 13:40
professionalPeter_in_27806-Feb-11 13:40 
GeneralRe: Problem with PHP - FastCGI - Headers Pin
Lea Hayes7-Feb-11 0:26
MemberLea Hayes7-Feb-11 0:26 
AnswerRe: Problem with PHP - FastCGI - Headers Pin
Peter_in_27807-Feb-11 12:28
professionalPeter_in_27807-Feb-11 12:28 
lhayes00 wrote:
It fails even if I stick an echo before it (and echoed text is not displayed).


Aha! If the echoed text is not displayed for an echo() BEFORE the first header(), then it seems that code is not being entered. An echo() should output something recognisable, even if the total result is a mangled chunk of HTML. This also ties in with the ERR_EMPTY_RESPONSE you mentioned in your original question.

The next place I would go looking is Apache and PHP version differences between the working and failing sites.

AFAIK, there are no special permissions required to use header(). ie, from a permissions point of view, header() is as good or bad as echo().

Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994.

GeneralRe: Problem with PHP - FastCGI - Headers Pin
Lea Hayes7-Feb-11 13:09
MemberLea Hayes7-Feb-11 13:09 
AnswerRe: Problem with PHP - FastCGI - Headers Pin
Peter_in_27807-Feb-11 14:00
professionalPeter_in_27807-Feb-11 14:00 
GeneralRe: Problem with PHP - FastCGI - Headers Pin
Lea Hayes8-Feb-11 0:11
MemberLea Hayes8-Feb-11 0:11 
GeneralRe: Problem with PHP - FastCGI - Headers Pin
nickmaroulis8-Feb-11 9:36
Membernickmaroulis8-Feb-11 9:36 
GeneralRe: Problem with PHP - FastCGI - Headers Pin
Lea Hayes8-Feb-11 15:14
MemberLea Hayes8-Feb-11 15:14 
GeneralRe: Problem with PHP - FastCGI - Headers Pin
nickmaroulis8-Feb-11 15:54
Membernickmaroulis8-Feb-11 15:54 
QuestionCreating file headers in php. Pin
Danzy8330-Jan-11 2:57
MemberDanzy8330-Jan-11 2:57 
AnswerRe: Creating file headers in php. Pin
cjoki31-Jan-11 4:56
Membercjoki31-Jan-11 4:56 
AnswerRe: Creating file headers in php. Pin
Niall Barr31-Jan-11 11:51
professionalNiall Barr31-Jan-11 11:51 
GeneralRe: Creating file headers in php. [modified] Pin
Danzy8331-Jan-11 12:49
MemberDanzy8331-Jan-11 12:49 
GeneralRe: Creating file headers in php. Pin
Niall Barr31-Jan-11 23:44
professionalNiall Barr31-Jan-11 23:44 
GeneralRe: Creating file headers in php. Pin
Danzy831-Feb-11 19:53
MemberDanzy831-Feb-11 19:53 
Questionsending a link to php script Pin
Danzy8327-Jan-11 14:15
MemberDanzy8327-Jan-11 14:15 
AnswerRe: sending a link to php script Pin
Gerben Jongerius27-Jan-11 19:54
MemberGerben Jongerius27-Jan-11 19:54 
QuestionForm not working... Pin
MacRaider426-Jan-11 7:53
MemberMacRaider426-Jan-11 7:53 
AnswerRe: Form not working... Pin
MacRaider426-Jan-11 8:33
MemberMacRaider426-Jan-11 8:33 
Questioni cant view this file Pin
ulio.pts21-Jan-11 22:24
Memberulio.pts21-Jan-11 22:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.