Re: [PHP] Sending headers to server

[email protected] (Karim Geiger)
Newsgroups php.general
Message-ID <[email protected]>
Hi MiguelOn 08/01/2013 04:04 PM, Miguel Guedes wrote:
> Hello List,
> 
> 
> I'm running PHP 5.4.9 as CGI (via apache 2.2.22) and can't seem to be 
> able to send headers to the server.
> 
> Both,
> 
> header('Status: 500 Internal Server Error'); 
> 
> and,
> 
> header('HTTP/1.1 500 Internal Server Error', true, 500);
> 
> result in nothing happening on the client side.
> 
> What am I missing?
> 

Works for me. What happens exactly? Do you get a 200?

Karim



-- 
Karim Geiger
Auszubildender Fachinformatiker AE

B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
signature.asc (application/pgp-signature, 555 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJR+nNUAAoJEP3U0UyBvgwDfosH/3LCK7VObGhBoPDjM4GQbu5N
pv3UGwW1l7xFds+ONSmqY3c2iFZVRIiihI3Tza+6X/tl0tYwEsWFU2XnXHfFBSGT
6QiNaaXe+QdHP5Dwh51ebrbAlWtbpoUn/u/SnoVqzpbMlW9ODKpQFULOJmnq2qvF
1jIowrACfbEQDwHoG+JpfhducwPM9i81eB4+CLCeLL5dnUOWsI9c/epYTloUhENk
kBOAHuZcW5lrDR3dFeAgTGJzOjO3qexmWxTVMv6mDtsYP1Bdx2uDHEBsRrZKVwA+
2eZGM5GJB0xgDGxdw5EzIueZAbcMDJIKpCV5Kge50b5gVvDMBdZSRVClrZbkZH0=
=/nem
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.