homepage Welcome to WebmasterWorld Guest from 184.72.82.126
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Rasing a 404 on purpose
404 php directory
rudyten




msg:3607136
 9:13 am on Mar 21, 2008 (gmt 0)

At moment if a user types an invalid category he gets a CATEGORY NOT FOUND MESSAGE.

I would like to RETURN a 404 rsponse. headers and all

How do i do this? thanks

 

Scally_Ally




msg:3607236
 1:27 pm on Mar 21, 2008 (gmt 0)

when the user finds a category that isnt there use this header.

header("HTTP/1.0 404 Not Found");

make sure this is before you have output any html

Ally

eelixduppy




msg:3607249
 1:48 pm on Mar 21, 2008 (gmt 0)

Welcome to WebmasterWorld, rudyten! :)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved