problem with page redirect and data insertion together

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • boss1
    New Member
    • Sep 2007
    • 45

    #16
    hello,
    i m havimg another problem when i use header("Locatio n: welcome.php"); i get this massege is in below:

    You don't have permission to access /new/="/new/welcome.php" on this server.

    i have used the directory in httpconf file is:
    DirectoryIndex index.php index.html

    still the the massege is showing.So now what can i do?

    pls help me

    Comment

    • Markus
      Recognized Expert Expert
      • Jun 2007
      • 6092

      #17
      Originally posted by boss1
      hello,
      i m havimg another problem when i use header("Locatio n: welcome.php"); i get this massege is in below:

      You don't have permission to access /new/="/new/welcome.php" on this server.

      i have used the directory in httpconf file is:
      DirectoryIndex index.php index.html

      still the the massege is showing.So now what can i do?

      pls help me
      Please show the code you are using.
      My guess is that you aren't setting the uri correctly.

      Comment

      • Atli
        Recognized Expert Expert
        • Nov 2006
        • 5062

        #18
        This is a file permission error. You, or rather the user which your web-server is running on (usually nobody), does not have permission to read the file you are asking for.

        You will have to log into the server and change the file permission.

        This should work, either in a Linux kernel or through FTP.
        Code:
        $ chmod 755 /path/to/your/file.ext

        Comment

        • boss1
          New Member
          • Sep 2007
          • 45

          #19
          hi,

          A new problem is arised.A massege is coming when i use form action="selfpaf e"
          and redirection is used that is header("Locatio n:/welcome.php");

          The massege is:
          The requested URL / welcome.php was not found on this server

          Note:the previous error massege is not found again.

          so what now?..pls..

          Comment

          Working...