header

This is a discussion on header within the PHP Language forums, part of the PHP Programming Forums category; I would make - if a user is not allowed to see my page - print an error document. -> 403. (in ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-02-2003
FiremanSAM
 
Posts: n/a
Default header

I would make - if a user is not allowed to see my page - print an error
document. -> 403. (in case below 404)

In php i used something like

if ($ans = array_search($ip, $iparray)) {
header("status: 404");
header("HTTP/1.0 404 Not Found");

Why does this not work. How can i get the official 403/ 404 page. Without
..htacces please.

FiremanSAM


Reply With Quote
  #2 (permalink)  
Old 10-02-2003
Matthias Esken
 
Posts: n/a
Default Re: header

"FiremanSAM" <firemansam@co.uk> schrieb:

> if ($ans = array_search($ip, $iparray)) {


Are you sure that you don't want to use

| if ($ans == array_search($ip, $iparray)) {

or

| if ($ans === array_search($ip, $iparray)) {

?

Regards,
Matthias
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:27 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0