Hi,
I have a very weird problem that happens when PHP should be returning an error.
Sometimes (and I’ve not worked out in which circumstances this happens) rather than returning a page with a php error on, php instead returns nothing at all. And I don’t even mean a blank page.
Say the page has loaded fine in the browser and the content in the page comes up fine. If i then add a line of code to the page that contains whatever kind of error that’s causing this problem, and then hit refresh in the browser, it literally does nothing, it just keeps that previous page visible and stops. If I try to add say "echo 123;" to the top of my script, go back and refresh, still no change.
Php is obviously returning nothing, and so the browser just keeps the old page up there. Once I remove the line with the error, or work out what the error was myself and fix it, it works fine.
This happens in FF and IE.
If I try to load the page straight into a new browser window, FF returns a blank page (and all the toolbar buttons, previous, next, refresh, stop etc. are disabled), and IE returns "This page cannot be displayed" (friendly HTTP errors are turned off).
In addition to this, sometimes, rather than returning nothing at all, php will return something that the browser thinks is a download of some sort, and FF and IE both display the download file dialogue. If i save this file and open it in notepad, its the page with the error in, it just didn’t open in the browser properly.
Can anyone help? It’s driving me mad.
Cheers,
Jack