I've discovered something very strange and have been trying to fix it all weekend. First up here's the logic of what I'm trying to accomplishes.
java file uploader --> post to a php page --> write header depending on outcome of uploads.
1) The header part is the screwy part. The header get written correctly, but the URL on the browser does not show the correct URL eventhought he content is of that URL.
2) When viewing sources, all the correct codes for that URL is there. The browser has no problem displaying HTML content. However, links such as <a href='/foo/'> points to a blank page (about:blank./foo when the mouse is over the status bar display that). And images <img src='/images/foo.gif'> does not display.
#2 can only be fix by appending a domain name to all sources and links. eg. <img src='http://mydomain.com/images/foo.gif'> then everything works.
Does anyone know what cause(s) this? or if there's a way around this problem?