You are here: Re: Get HTTP Response Code « PHP Programming Language « IT news, forums, messages
Re: Get HTTP Response Code

Posted by Oli Filth on 11/12/05 04:26

Mazin07 said the following on 12/11/2005 00:20:
> Is there any way to get the HTTP Response Code sent out by the server
> (ie 404, 302, etc)?

?

If your script runs, then it is up to the script to determine the
response code. By default, it's 200 (OK).

> Or could I just assume that the same code was sent?

Same as what?

> I know the $_SERVER array has a lot of info, but this isn't in there.

Well, obviously! Whilst the script is running, a response hasn't been
sent, so how could the response possibly be stored in a pre-defined
variable?


--
Oli

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация