Send headers and HTML all at once
Date: Mon, 25 Oct 2004 17:39:07 GMT
Hy all,
The variable $x contains all data to sent back to the user. Thus all headers
and the HTML for a HTML page in one variable. How do I send this back to the
client browser?
If I echo/print the data PHP creates its own set of headers and the headers
in $x will be displayed in the browser window instead of sending it as
headers.
Is there any way to send the data in $x al at once so php does not create
its own set of headers?
Thanks in advance
Rob
Relevant Pages
- [NEWS] AeroMail Multiple Vulnerabilities
... AeroMail versions prior to 1.45 ... uploaded files as it should. ... You can add additional headers to outgoing e-mail messages by sending some ... JavaScript and HTML code is active, ... (Securiteam) - Re: Report Generator Suggestions
... I explained how HTML doesn't support stuff like headers and footers and, although I don't understand exactly what you are recomending, you are basically telling me to use HTML. ... you can generate extra revenue by creating custom reports for customers who request it. ... (microsoft.public.vc.mfc) - Re: How could this possibly happen (HttpURLConnection + simple JSP page)
... In PHP that would throw some nasty HTTP-related warnings and potentially break the page as you are changing the headers after HTML display? ... You are writing code in a special format that is compiled in to a servlet, which is then executed by the server when the page is requested. ... The other thing is that writing things "after HTML display" is probably very difficult as the display is done on the users computer when they have recieved the response. ... When you create a response for the user it does not necessarily get sent back as soon as you start, and more importantly the headers do not necessarily finish as soon as you start writing to the body. ... (comp.lang.java.help) - force-downloaded report file flooded with HTML by mistake
... class ReportGenerator { ... function ReportGenerator() ... Generate the HTTP headers necessary for this file type. ... The force-downloaded file you get is completely flooded with HTML, ... (comp.lang.php) - Re: OE6 and Hotmail
... Robert Aldwinckle wrote: ... From his screen shot and as far as I can tell, 'cos I just tried the same he has indeed done a file>save as HTML for offline viewing, that's the default setting for saving. ... look at the headers for an E-mail which you sent in your Sent Items folder ... headers in it with the equivalent data from the saved message in the HTML. ... (microsoft.public.windows.inetexplorer.ie6_outlookexpress) |
|