About error code

Discussion in 'PHP' started by mrgamabm, Oct 20, 2012.

  1. #1
    What is 403 error code and 302 error code? Can anybody help me? How can I avoid it? Please help me.
     
    mrgamabm, Oct 20, 2012 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
  3. Wogan

    Wogan Peon

    Messages:
    81
    Likes Received:
    3
    Best Answers:
    2
    Trophy Points:
    0
    #3
    403 is generally a permission error - you're not allowed to browse a particular URL. For the most part this is caused by bad permissions on the file system - or, depending on your server configuration, you might get a 403 if you're trying to browse a folder but you're not allowed to.

    302 is just a temporary redirect, not an error. They're generally set in .php files (as header() calls), or .htaccess files (as RewriteTemporary, if i recall). Removing them and restarting your webservice should clear it up, since browsers shouldn't cache 302 redirects (they do cache 301s, though).
     
    Wogan, Oct 21, 2012 IP