RE: Site Moved From PHP4 to PHP5 Server - header, location no longer working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



That's the odd thing, there is nothing being indicated in the error logs the server just hangs and I have to restart apache in order to get the site back up. First I thought it might be the server so I move over to a different server, but I still have the same issue. What I feel is really odd is the fact that it worked in a previous version of php, so waht's changed?
 
~V

________________________________

From: Ashley Sheridan [mailto:ash@xxxxxxxxxxxxxxxxxxxx]
Sent: Thu 1/7/2010 7:52 AM
To: James McLean
Cc: Vernon Webb; php-general@xxxxxxxxxxxxx
Subject: Re:  Site Moved From PHP4 to PHP5 Server - header, location no longer working


On Thu, 2010-01-07 at 16:50 +1030, James McLean wrote: 

	On Thu, Jan 7, 2010 at 1:35 PM, Vernon Webb <vernon@xxxxxxxxxxxx> wrote:
	> I move a number of sites from one server to another and one the one server we had php4 and now we have php5 and since then my server seems to hang every time there is a header, location redirect. Anyone have any ideas on how to resolve this? Is there something I can easily change in the php.ini file that will resolve this issue?
	
	Off the top of my head it sounds like something is being output before
	the header, which causes an error. If you also have error display
	turned off, you will likely just see a white screen with no useful
	information.
	
	Make sure none of your includes have trailing whitespace or are trying
	to print out information before the header itself.
	
	Best bet is to turn on errors and log them, then you will see where
	the output started if infact that is your issue.
	
	Cheers
	


Don't turn on errors if this machine is public, as it could potentially give out more information to people than you want. First, look at the error logs for PHP, which record all the errors you've had with the site, whether you have them displayed or not.


Thanks,
Ash
http://www.ashleysheridan.co.uk <http://www.ashleysheridan.co.uk/> 


	

-- 
This message has been scanned for viruses and 
dangerous content by comp-wiz.com <http://comp-wiz.com/> , and is 
believed to be clean. 

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux