[liphp] (no subject)
Christopher R. Merlo
[email protected]
Mon, 23 Jun 2003 23:33:36 -0400
On 2003-06-23 13:00 -0400, Raheel Ahmad Khan <[email protected]> wrote:
> However, its not able to send a 204 status after it receives the file.
> It displays a 500 Internal Server Error. Any ideas as to why the script
> is unable to send the headers back to the client.
>From the manual:
If you haven't used, HTTP Response 204 can be very convenient. 204
tells the server to immediately termiante this request. This is
helpful if you want a javascript (or similar) client-side function to
execute a server-side function without refreshing or changing the
current webpage. Great for updating database, setting global
variables, etc.
Maybe that's the problem? Are you sure you want to send a 204? What
versions of Apache, PHP and browser are you using?
Also remember that you're not allowed to send any headers after you've
sent anything else. Is this php file being included from elsewhere?
-c
--
[email protected] http://turing.matcmp.ncc.edu/~cmerlo
"The connection between the language in which we think/program and the
problems and solutions we can imagine is very close. For this reason
restricting language features with the intent of eliminating
programmer errors is at best dangerous."
-- Bjarne Stroustrup in "The C++ Programming Language"