HTTP 403

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lennart Anderson

    HTTP 403

    I have finally managed to get Apache 2.2.4, PHP 5.2.0 and MySQL to talk to
    each other. Everything seems to work OK when dealing with databases but as
    soon as I use a php-script that use $_server the browser will throw me away
    and give me HTTP 403.

    It has worked before but that was before I got the communication to work
    with MySQL

    Any ideas or solutions are very much appreciated.

    /Lennart


  • Satya

    #2
    Re: HTTP 403

    On Feb 8, 3:59 am, "Lennart Anderson" <lennart.ander. ..@tele2.se>
    wrote:
    I have finally managed to get Apache 2.2.4, PHP 5.2.0 and MySQL to talk to
    each other. Everything seems to work OK when dealing with databases but as
    soon as I use a php-script that use $_server the browser will throw me away
    and give me HTTP 403.
    >
    It has worked before but that was before I got the communication to work
    with MySQL
    >
    Any ideas or solutions are very much appreciated.
    >
    /Lennart
    ---------------------
    I see no reason for this.
    if you are using $_server then use $_SERVER['key'];

    Comment

    • Lennart Anderson

      #3
      Re: HTTP 403


      "Satya" <satya61229@gma il.comskrev i meddelandet
      news:1171087978 .827105.134470@ h3g2000cwc.goog legroups.com...
      On Feb 8, 3:59 am, "Lennart Anderson" <lennart.ander. ..@tele2.se>
      wrote:
      >I have finally managed to get Apache 2.2.4, PHP 5.2.0 and MySQL to talk
      >to
      >each other. Everything seems to work OK when dealing with databases but
      >as
      >soon as I use a php-script that use $_server the browser will throw me
      >away
      >and give me HTTP 403.
      >>
      >It has worked before but that was before I got the communication to work
      >with MySQL
      >>
      >Any ideas or solutions are very much appreciated.
      >>
      >/Lennart
      >
      ---------------------
      I see no reason for this.
      if you are using $_server then use $_SERVER['key'];
      >
      Thats is exactly how I'm doing. Still the browser will through me away and
      denies to show the page, just saying HTTP 403.
      /Lennart


      Comment

      • Captain Paralytic

        #4
        Re: HTTP 403

        On 12 Feb, 15:06, "Lennart Anderson" <lennart.ander. ..@tele2.se>
        wrote:
        "Satya" <satya61...@gma il.comskrev i meddelandetnews :1171087978.827 105.134470@h3g2 000cwc.googlegr oups.com...
        >
        >
        >
        On Feb 8, 3:59 am, "Lennart Anderson" <lennart.ander. ..@tele2.se>
        wrote:
        I have finally managed to get Apache 2.2.4, PHP 5.2.0 and MySQL to talk
        to
        each other. Everything seems to work OK when dealing with databases but
        as
        soon as I use a php-script that use $_server the browser will throw me
        away
        and give me HTTP 403.
        >
        It has worked before but that was before I got the communication to work
        with MySQL
        >
        Any ideas or solutions are very much appreciated.
        >
        /Lennart
        >
        ---------------------
        I see no reason for this.
        if you are using $_server then use $_SERVER['key'];
        >
        Thats is exactly how I'm doing. Still the browser will through me away and
        denies to show the page, just saying HTTP 403.
        /Lennart- Hide quoted text -
        >
        - Show quoted text -
        Care to share some of the code?

        Comment

        • Lennart Anderson

          #5
          Re: HTTP 403


          "Satya" <satya61229@gma il.comskrev i meddelandet
          news:1171087978 .827105.134470@ h3g2000cwc.goog legroups.com...
          On Feb 8, 3:59 am, "Lennart Anderson" <lennart.ander. ..@tele2.se>
          wrote:
          >I have finally managed to get Apache 2.2.4, PHP 5.2.0 and MySQL to talk
          >to
          >each other. Everything seems to work OK when dealing with databases but
          >as
          >soon as I use a php-script that use $_server the browser will throw me
          >away
          >and give me HTTP 403.
          >>
          >It has worked before but that was before I got the communication to work
          >with MySQL
          >>
          >Any ideas or solutions are very much appreciated.
          >>
          >/Lennart
          >
          ---------------------
          I see no reason for this.
          if you are using $_server then use $_SERVER['key'];
          >
          This is exactly how I'm using it but still the browser refuse to show the
          page but just say HTTP 403
          /Lennart


          Comment

          • Lennart Anderson

            #6
            Re: HTTP 403


            "Captain Paralytic" <paul_lautman@y ahoo.comskrev i meddelandet
            news:1171292908 .022502.97460@s 48g2000cws.goog legroups.com...
            On 12 Feb, 15:06, "Lennart Anderson" <lennart.ander. ..@tele2.se>
            wrote:
            >"Satya" <satya61...@gma il.comskrev i
            >meddelandetnew s:1171087978.82 7105.134470@h3g 2000cwc.googleg roups.com...
            >>
            >>
            >>
            On Feb 8, 3:59 am, "Lennart Anderson" <lennart.ander. ..@tele2.se>
            wrote:
            >I have finally managed to get Apache 2.2.4, PHP 5.2.0 and MySQL to
            >talk
            >to
            >each other. Everything seems to work OK when dealing with databases
            >but
            >as
            >soon as I use a php-script that use $_server the browser will throw me
            >away
            >and give me HTTP 403.
            >>
            >It has worked before but that was before I got the communication to
            >work
            >with MySQL
            >>
            >Any ideas or solutions are very much appreciated.
            >>
            >/Lennart
            >>
            ---------------------
            I see no reason for this.
            if you are using $_server then use $_SERVER['key'];
            >>
            >Thats is exactly how I'm doing. Still the browser will through me away
            >and
            >denies to show the page, just saying HTTP 403.
            >/Lennart- Hide quoted text -
            >>
            >- Show quoted text -
            >
            Care to share some of the code?
            >
            This is the simple test code that causes the HTTP403
            <form action="<?=$_SE RVER['PHP_SELF']?>" method="post">
            Username: <input type="text" name="username" >
            <br />
            Password: <input type="password" name="password" >
            <br /><br />
            <input type="submit" name="submit" value="Sign Up">

            /Lennart


            Comment

            • Captain Paralytic

              #7
              Re: HTTP 403

              On 12 Feb, 15:13, "Lennart Anderson" <lennart.ander. ..@tele2.se>
              wrote:
              "Captain Paralytic" <paul_laut...@y ahoo.comskrev i meddelandetnews :1171292908.022 502.97460@s48g2 000cws.googlegr oups.com...
              >
              >
              >
              On 12 Feb, 15:06, "Lennart Anderson" <lennart.ander. ..@tele2.se>
              wrote:
              "Satya" <satya61...@gma il.comskrev i
              meddelandetnews :1171087978.827 105.134470@h3g2 000cwc.googlegr oups.com...
              >
              On Feb 8, 3:59 am, "Lennart Anderson" <lennart.ander. ..@tele2.se>
              wrote:
              I have finally managed to get Apache 2.2.4, PHP 5.2.0 and MySQL to
              talk
              to
              each other. Everything seems to work OK when dealing with databases
              but
              as
              soon as I use a php-script that use $_server the browser will throw me
              away
              and give me HTTP 403.
              >
              It has worked before but that was before I got the communication to
              work
              with MySQL
              >
              Any ideas or solutions are very much appreciated.
              >
              /Lennart
              >
              ---------------------
              I see no reason for this.
              if you are using $_server then use $_SERVER['key'];
              >
              Thats is exactly how I'm doing. Still the browser will through me away
              and
              denies to show the page, just saying HTTP 403.
              /Lennart- Hide quoted text -
              >
              - Show quoted text -
              >
              Care to share some of the code?
              >
              This is the simple test code that causes the HTTP403
              <form action="<?=$_SE RVER['PHP_SELF']?>" method="post">
              Username: <input type="text" name="username" >
              <br />
              Password: <input type="password" name="password" >
              <br /><br />
              <input type="submit" name="submit" value="Sign Up">
              >
              /Lennart- Hide quoted text -
              >
              - Show quoted text -
              OK, now when you say "I use a php script", when aer you considering it
              to be used?
              Do you get the form displayed but get the error when you press "Sign
              Up" or do you not get the form displayed at all?

              Comment

              • Lennart Anderson

                #8
                Re: HTTP 403


                "Captain Paralytic" <paul_lautman@y ahoo.comskrev i meddelandet
                news:1171293983 .056633.220620@ j27g2000cwj.goo glegroups.com.. .
                On 12 Feb, 15:13, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                wrote:
                >"Captain Paralytic" <paul_laut...@y ahoo.comskrev i
                >meddelandetnew s:1171292908.02 2502.97460@s48g 2000cws.googleg roups.com...
                >>
                >>
                >>
                On 12 Feb, 15:06, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                wrote:
                >"Satya" <satya61...@gma il.comskrev i
                >meddelandetnew s:1171087978.82 7105.134470@h3g 2000cwc.googleg roups.com...
                >>
                On Feb 8, 3:59 am, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                wrote:
                >I have finally managed to get Apache 2.2.4, PHP 5.2.0 and MySQL to
                >talk
                >to
                >each other. Everything seems to work OK when dealing with databases
                >but
                >as
                >soon as I use a php-script that use $_server the browser will throw
                >me
                >away
                >and give me HTTP 403.
                >>
                >It has worked before but that was before I got the communication to
                >work
                >with MySQL
                >>
                >Any ideas or solutions are very much appreciated.
                >>
                >/Lennart
                >>
                ---------------------
                I see no reason for this.
                if you are using $_server then use $_SERVER['key'];
                >>
                >Thats is exactly how I'm doing. Still the browser will through me away
                >and
                >denies to show the page, just saying HTTP 403.
                >/Lennart- Hide quoted text -
                >>
                >- Show quoted text -
                >>
                Care to share some of the code?
                >>
                >This is the simple test code that causes the HTTP403
                ><form action="<?=$_SE RVER['PHP_SELF']?>" method="post">
                >Username: <input type="text" name="username" >
                ><br />
                >Password: <input type="password" name="password" >
                ><br /><br />
                ><input type="submit" name="submit" value="Sign Up">
                >>
                >/Lennart- Hide quoted text -
                >>
                >- Show quoted text -
                >
                OK, now when you say "I use a php script", when aer you considering it
                to be used?
                Do you get the form displayed but get the error when you press "Sign
                Up" or do you not get the form displayed at all?
                >
                When ran I get the page and give ensers to the two inputs.
                The browser reacts with HTTP 403 when I press the submit-button
                /Lennart


                Comment

                • Captain Paralytic

                  #9
                  Re: HTTP 403

                  On 12 Feb, 15:41, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                  wrote:
                  "Captain Paralytic" <paul_laut...@y ahoo.comskrev i meddelandetnews :1171293983.056 633.220620@j27g 2000cwj.googleg roups.com...
                  >
                  >
                  >
                  On 12 Feb, 15:13, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                  wrote:
                  "Captain Paralytic" <paul_laut...@y ahoo.comskrev i
                  meddelandetnews :1171292908.022 502.97460@s48g2 000cws.googlegr oups.com...
                  >
                  On 12 Feb, 15:06, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                  wrote:
                  "Satya" <satya61...@gma il.comskrev i
                  meddelandetnews :1171087978.827 105.134470@h3g2 000cwc.googlegr oups.com...
                  >
                  On Feb 8, 3:59 am, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                  wrote:
                  I have finally managed to get Apache 2.2.4, PHP 5.2.0 and MySQL to
                  talk
                  to
                  each other. Everything seems to work OK when dealing with databases
                  but
                  as
                  soon as I use a php-script that use $_server the browser will throw
                  me
                  away
                  and give me HTTP 403.
                  >
                  It has worked before but that was before I got the communication to
                  work
                  with MySQL
                  >
                  Any ideas or solutions are very much appreciated.
                  >
                  /Lennart
                  >
                  ---------------------
                  I see no reason for this.
                  if you are using $_server then use $_SERVER['key'];
                  >
                  Thats is exactly how I'm doing. Still the browser will through me away
                  and
                  denies to show the page, just saying HTTP 403.
                  /Lennart- Hide quoted text -
                  >
                  - Show quoted text -
                  >
                  Care to share some of the code?
                  >
                  This is the simple test code that causes the HTTP403
                  <form action="<?=$_SE RVER['PHP_SELF']?>" method="post">
                  Username: <input type="text" name="username" >
                  <br />
                  Password: <input type="password" name="password" >
                  <br /><br />
                  <input type="submit" name="submit" value="Sign Up">
                  >
                  /Lennart- Hide quoted text -
                  >
                  - Show quoted text -
                  >
                  OK, now when you say "I use a php script", when aer you considering it
                  to be used?
                  Do you get the form displayed but get the error when you press "Sign
                  Up" or do you not get the form displayed at all?
                  >
                  When ran I get the page and give ensers to the two inputs.
                  The browser reacts with HTTP 403 when I press the submit-button
                  /Lennart- Hide quoted text -
                  >
                  - Show quoted text -
                  OK, so what you said first was incorrect. You are using the script to
                  produce the form. So it is not the act of accessing $_SERVER per se
                  that is causing the 403. You are getting the 403 when you try to
                  submit the form to the "address" that is output by the original php
                  call.

                  To be honest, you don't really need that call for what you are doing.
                  By default the form will submit to the same address that is in the
                  address bar, so try coding the form as

                  <form action="" method="post">
                  Username: <input type="text" name="username" >
                  <br />
                  Password: <input type="password" name="password" >
                  <br /><br />
                  <input type="submit" name="submit" value="Sign Up">

                  and see what happens.

                  Comment

                  • Lennart Anderson

                    #10
                    Re: HTTP 403


                    "Captain Paralytic" <paul_lautman@y ahoo.comskrev i meddelandet
                    news:1171295377 .124061.210900@ s48g2000cws.goo glegroups.com.. .
                    On 12 Feb, 15:41, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                    wrote:
                    >"Captain Paralytic" <paul_laut...@y ahoo.comskrev i
                    >meddelandetnew s:1171293983.05 6633.220620@j27 g2000cwj.google groups.com...
                    >>
                    >>
                    >>
                    On 12 Feb, 15:13, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                    wrote:
                    >"Captain Paralytic" <paul_laut...@y ahoo.comskrev i
                    >meddelandetnew s:1171292908.02 2502.97460@s48g 2000cws.googleg roups.com...
                    >>
                    On 12 Feb, 15:06, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                    wrote:
                    >"Satya" <satya61...@gma il.comskrev i
                    >meddelandetnew s:1171087978.82 7105.134470@h3g 2000cwc.googleg roups.com...
                    >>
                    On Feb 8, 3:59 am, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                    wrote:
                    >I have finally managed to get Apache 2.2.4, PHP 5.2.0 and MySQL
                    >to
                    >talk
                    >to
                    >each other. Everything seems to work OK when dealing with
                    >databases
                    >but
                    >as
                    >soon as I use a php-script that use $_server the browser will
                    >throw
                    >me
                    >away
                    >and give me HTTP 403.
                    >>
                    >It has worked before but that was before I got the communication
                    >to
                    >work
                    >with MySQL
                    >>
                    >Any ideas or solutions are very much appreciated.
                    >>
                    >/Lennart
                    >>
                    ---------------------
                    I see no reason for this.
                    if you are using $_server then use $_SERVER['key'];
                    >>
                    >Thats is exactly how I'm doing. Still the browser will through me
                    >away
                    >and
                    >denies to show the page, just saying HTTP 403.
                    >/Lennart- Hide quoted text -
                    >>
                    >- Show quoted text -
                    >>
                    Care to share some of the code?
                    >>
                    >This is the simple test code that causes the HTTP403
                    ><form action="<?=$_SE RVER['PHP_SELF']?>" method="post">
                    >Username: <input type="text" name="username" >
                    ><br />
                    >Password: <input type="password" name="password" >
                    ><br /><br />
                    ><input type="submit" name="submit" value="Sign Up">
                    >>
                    >/Lennart- Hide quoted text -
                    >>
                    >- Show quoted text -
                    >>
                    OK, now when you say "I use a php script", when aer you considering it
                    to be used?
                    Do you get the form displayed but get the error when you press "Sign
                    Up" or do you not get the form displayed at all?
                    >>
                    >When ran I get the page and give ensers to the two inputs.
                    >The browser reacts with HTTP 403 when I press the submit-button
                    >/Lennart- Hide quoted text -
                    >>
                    >- Show quoted text -
                    >
                    OK, so what you said first was incorrect. You are using the script to
                    produce the form. So it is not the act of accessing $_SERVER per se
                    that is causing the 403. You are getting the 403 when you try to
                    submit the form to the "address" that is output by the original php
                    call.
                    >
                    To be honest, you don't really need that call for what you are doing.
                    By default the form will submit to the same address that is in the
                    address bar, so try coding the form as
                    >
                    <form action="" method="post">
                    Username: <input type="text" name="username" >
                    <br />
                    Password: <input type="password" name="password" >
                    <br /><br />
                    <input type="submit" name="submit" value="Sign Up">
                    >
                    and see what happens.
                    >
                    Thanks. I think I see what you mean but can I still use the keyed username
                    and password as variables and go furhter to for instance a database with
                    them. I admit I am a newbie but if you don't ask you don't get any answers.
                    /Lennart


                    Comment

                    • Lennart Anderson

                      #11
                      Re: HTTP 403


                      "Lennart Anderson" <lennart.anders on@tele2.seskre v i meddelandet
                      news:q90Ah.82$a 36.413@nntpserv er.swip.net...
                      >
                      "Captain Paralytic" <paul_lautman@y ahoo.comskrev i meddelandet
                      news:1171295377 .124061.210900@ s48g2000cws.goo glegroups.com.. .
                      >On 12 Feb, 15:41, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                      >wrote:
                      >>"Captain Paralytic" <paul_laut...@y ahoo.comskrev i
                      >>meddelandetne ws:1171293983.0 56633.220620@j2 7g2000cwj.googl egroups.com...
                      >>>
                      >>>
                      >>>
                      >On 12 Feb, 15:13, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                      >wrote:
                      >>"Captain Paralytic" <paul_laut...@y ahoo.comskrev i
                      >>meddelandetne ws:1171292908.0 22502.97460@s48 g2000cws.google groups.com...
                      >>>
                      >On 12 Feb, 15:06, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                      >wrote:
                      >>"Satya" <satya61...@gma il.comskrev i
                      >>meddelandetne ws:1171087978.8 27105.134470@h3 g2000cwc.google groups.com...
                      >>>
                      >On Feb 8, 3:59 am, "Lennart Anderson"
                      ><lennart.ander ...@tele2.se>
                      >wrote:
                      >>I have finally managed to get Apache 2.2.4, PHP 5.2.0 and MySQL
                      >>to
                      >>talk
                      >>to
                      >>each other. Everything seems to work OK when dealing with
                      >>databases
                      >>but
                      >>as
                      >>soon as I use a php-script that use $_server the browser will
                      >>throw
                      >>me
                      >>away
                      >>and give me HTTP 403.
                      >>>
                      >>It has worked before but that was before I got the
                      >>communicati on to
                      >>work
                      >>with MySQL
                      >>>
                      >>Any ideas or solutions are very much appreciated.
                      >>>
                      >>/Lennart
                      >>>
                      >---------------------
                      >I see no reason for this.
                      >if you are using $_server then use $_SERVER['key'];
                      >>>
                      >>Thats is exactly how I'm doing. Still the browser will through me
                      >>away
                      >>and
                      >>denies to show the page, just saying HTTP 403.
                      >>/Lennart- Hide quoted text -
                      >>>
                      >>- Show quoted text -
                      >>>
                      >Care to share some of the code?
                      >>>
                      >>This is the simple test code that causes the HTTP403
                      >><form action="<?=$_SE RVER['PHP_SELF']?>" method="post">
                      >>Username: <input type="text" name="username" >
                      >><br />
                      >>Password: <input type="password" name="password" >
                      >><br /><br />
                      >><input type="submit" name="submit" value="Sign Up">
                      >>>
                      >>/Lennart- Hide quoted text -
                      >>>
                      >>- Show quoted text -
                      >>>
                      >OK, now when you say "I use a php script", when aer you considering it
                      >to be used?
                      >Do you get the form displayed but get the error when you press "Sign
                      >Up" or do you not get the form displayed at all?
                      >>>
                      >>When ran I get the page and give ensers to the two inputs.
                      >>The browser reacts with HTTP 403 when I press the submit-button
                      >>/Lennart- Hide quoted text -
                      >>>
                      >>- Show quoted text -
                      >>
                      >OK, so what you said first was incorrect. You are using the script to
                      >produce the form. So it is not the act of accessing $_SERVER per se
                      >that is causing the 403. You are getting the 403 when you try to
                      >submit the form to the "address" that is output by the original php
                      >call.
                      >>
                      >To be honest, you don't really need that call for what you are doing.
                      >By default the form will submit to the same address that is in the
                      >address bar, so try coding the form as
                      >>
                      ><form action="" method="post">
                      >Username: <input type="text" name="username" >
                      ><br />
                      >Password: <input type="password" name="password" >
                      ><br /><br />
                      ><input type="submit" name="submit" value="Sign Up">
                      >>
                      >and see what happens.
                      >>
                      Thanks. I think I see what you mean but can I still use the keyed username
                      and password as variables and go furhter to for instance a database with
                      them. I admit I am a newbie but if you don't ask you don't get any
                      answers.
                      /Lennart
                      >
                      When running my original script i furthermore get:
                      http://localhost/%3C?=$_SERVER['PHP_SELF']?>
                      in the URL-line of the browser.
                      I know the script works because i have ran it at the webb-hotel. Just
                      wondering why it works there but not on my local workstation
                      /Lennart


                      Comment

                      • Captain Paralytic

                        #12
                        Re: HTTP 403

                        On 12 Feb, 15:59, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                        wrote:
                        "Captain Paralytic" <paul_laut...@y ahoo.comskrev i meddelandetnews :1171295377.124 061.210900@s48g 2000cws.googleg roups.com...
                        >
                        >
                        >
                        On 12 Feb, 15:41, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                        wrote:
                        "Captain Paralytic" <paul_laut...@y ahoo.comskrev i
                        meddelandetnews :1171293983.056 633.220620@j27g 2000cwj.googleg roups.com...
                        >
                        On 12 Feb, 15:13, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                        wrote:
                        "Captain Paralytic" <paul_laut...@y ahoo.comskrev i
                        meddelandetnews :1171292908.022 502.97460@s48g2 000cws.googlegr oups.com...
                        >
                        On 12 Feb, 15:06, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                        wrote:
                        "Satya" <satya61...@gma il.comskrev i
                        meddelandetnews :1171087978.827 105.134470@h3g2 000cwc.googlegr oups.com...
                        >
                        On Feb 8, 3:59 am, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                        wrote:
                        I have finally managed to get Apache 2.2.4, PHP 5.2.0 and MySQL
                        to
                        talk
                        to
                        each other. Everything seems to work OK when dealing with
                        databases
                        but
                        as
                        soon as I use a php-script that use $_server the browser will
                        throw
                        me
                        away
                        and give me HTTP 403.
                        >
                        It has worked before but that was before I got the communication
                        to
                        work
                        with MySQL
                        >
                        Any ideas or solutions are very much appreciated.
                        >
                        /Lennart
                        >
                        ---------------------
                        I see no reason for this.
                        if you are using $_server then use $_SERVER['key'];
                        >
                        Thats is exactly how I'm doing. Still the browser will through me
                        away
                        and
                        denies to show the page, just saying HTTP 403.
                        /Lennart- Hide quoted text -
                        >
                        - Show quoted text -
                        >
                        Care to share some of the code?
                        >
                        This is the simple test code that causes the HTTP403
                        <form action="<?=$_SE RVER['PHP_SELF']?>" method="post">
                        Username: <input type="text" name="username" >
                        <br />
                        Password: <input type="password" name="password" >
                        <br /><br />
                        <input type="submit" name="submit" value="Sign Up">
                        >
                        /Lennart- Hide quoted text -
                        >
                        - Show quoted text -
                        >
                        OK, now when you say "I use a php script", when aer you considering it
                        to be used?
                        Do you get the form displayed but get the error when you press "Sign
                        Up" or do you not get the form displayed at all?
                        >
                        When ran I get the page and give ensers to the two inputs.
                        The browser reacts with HTTP 403 when I press the submit-button
                        /Lennart- Hide quoted text -
                        >
                        - Show quoted text -
                        >
                        OK, so what you said first was incorrect. You are using the script to
                        produce the form. So it is not the act of accessing $_SERVER per se
                        that is causing the 403. You are getting the 403 when you try to
                        submit the form to the "address" that is output by the original php
                        call.
                        >
                        To be honest, you don't really need that call for what you are doing.
                        By default the form will submit to the same address that is in the
                        address bar, so try coding the form as
                        >
                        <form action="" method="post">
                        Username: <input type="text" name="username" >
                        <br />
                        Password: <input type="password" name="password" >
                        <br /><br />
                        <input type="submit" name="submit" value="Sign Up">
                        >
                        and see what happens.
                        >
                        Thanks. I think I see what you mean but can I still use the keyed username
                        and password as variables and go furhter to for instance a database with
                        them. I admit I am a newbie but if you don't ask you don't get any answers.
                        /Lennart- Hide quoted text -
                        >
                        - Show quoted text -
                        What is happening with the way that you have coded your script (if
                        you've done it correctly) is that the first time it gets executed, it
                        will display the form. Then when you click "Sign Up" the same script
                        is executed again, but this time it detects that it has been run due
                        to a valid form submission and the does whatever other processing you
                        have asked it to do.

                        An empty "action" parm just does the submission back to the current
                        URL, the same as the php_self should have done.

                        Did the submit work OK using my suggestion?

                        Comment

                        • Lennart Anderson

                          #13
                          Re: HTTP 403


                          "Captain Paralytic" <paul_lautman@y ahoo.comskrev i meddelandet
                          news:1171297244 .099838.287800@ k78g2000cwa.goo glegroups.com.. .
                          On 12 Feb, 15:59, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                          wrote:
                          >"Captain Paralytic" <paul_laut...@y ahoo.comskrev i
                          >meddelandetnew s:1171295377.12 4061.210900@s48 g2000cws.google groups.com...
                          >>
                          >>
                          >>
                          On 12 Feb, 15:41, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                          wrote:
                          >"Captain Paralytic" <paul_laut...@y ahoo.comskrev i
                          >meddelandetnew s:1171293983.05 6633.220620@j27 g2000cwj.google groups.com...
                          >>
                          On 12 Feb, 15:13, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                          wrote:
                          >"Captain Paralytic" <paul_laut...@y ahoo.comskrev i
                          >meddelandetnew s:1171292908.02 2502.97460@s48g 2000cws.googleg roups.com...
                          >>
                          On 12 Feb, 15:06, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                          wrote:
                          >"Satya" <satya61...@gma il.comskrev i
                          >meddelandetnew s:1171087978.82 7105.134470@h3g 2000cwc.googleg roups.com...
                          >>
                          On Feb 8, 3:59 am, "Lennart Anderson"
                          <lennart.ander. ..@tele2.se>
                          wrote:
                          >I have finally managed to get Apache 2.2.4, PHP 5.2.0 and
                          >MySQL
                          >to
                          >talk
                          >to
                          >each other. Everything seems to work OK when dealing with
                          >databases
                          >but
                          >as
                          >soon as I use a php-script that use $_server the browser will
                          >throw
                          >me
                          >away
                          >and give me HTTP 403.
                          >>
                          >It has worked before but that was before I got the
                          >communicatio n
                          >to
                          >work
                          >with MySQL
                          >>
                          >Any ideas or solutions are very much appreciated.
                          >>
                          >/Lennart
                          >>
                          ---------------------
                          I see no reason for this.
                          if you are using $_server then use $_SERVER['key'];
                          >>
                          >Thats is exactly how I'm doing. Still the browser will through
                          >me
                          >away
                          >and
                          >denies to show the page, just saying HTTP 403.
                          >/Lennart- Hide quoted text -
                          >>
                          >- Show quoted text -
                          >>
                          Care to share some of the code?
                          >>
                          >This is the simple test code that causes the HTTP403
                          ><form action="<?=$_SE RVER['PHP_SELF']?>" method="post">
                          >Username: <input type="text" name="username" >
                          ><br />
                          >Password: <input type="password" name="password" >
                          ><br /><br />
                          ><input type="submit" name="submit" value="Sign Up">
                          >>
                          >/Lennart- Hide quoted text -
                          >>
                          >- Show quoted text -
                          >>
                          OK, now when you say "I use a php script", when aer you considering
                          it
                          to be used?
                          Do you get the form displayed but get the error when you press "Sign
                          Up" or do you not get the form displayed at all?
                          >>
                          >When ran I get the page and give ensers to the two inputs.
                          >The browser reacts with HTTP 403 when I press the submit-button
                          >/Lennart- Hide quoted text -
                          >>
                          >- Show quoted text -
                          >>
                          OK, so what you said first was incorrect. You are using the script to
                          produce the form. So it is not the act of accessing $_SERVER per se
                          that is causing the 403. You are getting the 403 when you try to
                          submit the form to the "address" that is output by the original php
                          call.
                          >>
                          To be honest, you don't really need that call for what you are doing.
                          By default the form will submit to the same address that is in the
                          address bar, so try coding the form as
                          >>
                          <form action="" method="post">
                          Username: <input type="text" name="username" >
                          <br />
                          Password: <input type="password" name="password" >
                          <br /><br />
                          <input type="submit" name="submit" value="Sign Up">
                          >>
                          and see what happens.
                          >>
                          >Thanks. I think I see what you mean but can I still use the keyed
                          >username
                          >and password as variables and go furhter to for instance a database with
                          >them. I admit I am a newbie but if you don't ask you don't get any
                          >answers.
                          >/Lennart- Hide quoted text -
                          >>
                          >- Show quoted text -
                          >
                          What is happening with the way that you have coded your script (if
                          you've done it correctly) is that the first time it gets executed, it
                          will display the form. Then when you click "Sign Up" the same script
                          is executed again, but this time it detects that it has been run due
                          to a valid form submission and the does whatever other processing you
                          have asked it to do.
                          >
                          An empty "action" parm just does the submission back to the current
                          URL, the same as the php_self should have done.
                          >
                          Did the submit work OK using my suggestion?
                          >
                          Thanks. Your suggested code worked as expected and accepted the inouts an
                          took care of them.
                          Just the follow question as above - can I in your script use the input names
                          as variables for further actions?
                          /Lennart


                          Comment

                          • Captain Paralytic

                            #14
                            Re: HTTP 403

                            On 12 Feb, 16:24, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                            wrote:
                            "Captain Paralytic" <paul_laut...@y ahoo.comskrev i meddelandetnews :1171297244.099 838.287800@k78g 2000cwa.googleg roups.com...
                            >
                            >
                            >
                            >
                            >
                            On 12 Feb, 15:59, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                            wrote:
                            "Captain Paralytic" <paul_laut...@y ahoo.comskrev i
                            meddelandetnews :1171295377.124 061.210900@s48g 2000cws.googleg roups.com...
                            >
                            On 12 Feb, 15:41, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                            wrote:
                            "Captain Paralytic" <paul_laut...@y ahoo.comskrev i
                            meddelandetnews :1171293983.056 633.220620@j27g 2000cwj.googleg roups.com...
                            >
                            On 12 Feb, 15:13, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                            wrote:
                            "Captain Paralytic" <paul_laut...@y ahoo.comskrev i
                            meddelandetnews :1171292908.022 502.97460@s48g2 000cws.googlegr oups.com...
                            >
                            On 12 Feb, 15:06, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                            wrote:
                            "Satya" <satya61...@gma il.comskrev i
                            meddelandetnews :1171087978.827 105.134470@h3g2 000cwc.googlegr oups.com...
                            >
                            On Feb 8, 3:59 am, "Lennart Anderson"
                            <lennart.ander. ..@tele2.se>
                            wrote:
                            I have finally managed to get Apache 2.2.4, PHP 5.2.0 and
                            MySQL
                            to
                            talk
                            to
                            each other. Everything seems to work OK when dealing with
                            databases
                            but
                            as
                            soon as I use a php-script that use $_server the browser will
                            throw
                            me
                            away
                            and give me HTTP 403.
                            >
                            It has worked before but that was before I got the
                            communication
                            to
                            work
                            with MySQL
                            >
                            Any ideas or solutions are very much appreciated.
                            >
                            /Lennart
                            >
                            ---------------------
                            I see no reason for this.
                            if you are using $_server then use $_SERVER['key'];
                            >
                            Thats is exactly how I'm doing. Still the browser will through
                            me
                            away
                            and
                            denies to show the page, just saying HTTP 403.
                            /Lennart- Hide quoted text -
                            >
                            - Show quoted text -
                            >
                            Care to share some of the code?
                            >
                            This is the simple test code that causes the HTTP403
                            <form action="<?=$_SE RVER['PHP_SELF']?>" method="post">
                            Username: <input type="text" name="username" >
                            <br />
                            Password: <input type="password" name="password" >
                            <br /><br />
                            <input type="submit" name="submit" value="Sign Up">
                            >
                            /Lennart- Hide quoted text -
                            >
                            - Show quoted text -
                            >
                            OK, now when you say "I use a php script", when aer you considering
                            it
                            to be used?
                            Do you get the form displayed but get the error when you press "Sign
                            Up" or do you not get the form displayed at all?
                            >
                            When ran I get the page and give ensers to the two inputs.
                            The browser reacts with HTTP 403 when I press the submit-button
                            /Lennart- Hide quoted text -
                            >
                            - Show quoted text -
                            >
                            OK, so what you said first was incorrect. You are using the script to
                            produce the form. So it is not the act of accessing $_SERVER per se
                            that is causing the 403. You are getting the 403 when you try to
                            submit the form to the "address" that is output by the original php
                            call.
                            >
                            To be honest, you don't really need that call for what you are doing.
                            By default the form will submit to the same address that is in the
                            address bar, so try coding the form as
                            >
                            <form action="" method="post">
                            Username: <input type="text" name="username" >
                            <br />
                            Password: <input type="password" name="password" >
                            <br /><br />
                            <input type="submit" name="submit" value="Sign Up">
                            >
                            and see what happens.
                            >
                            Thanks. I think I see what you mean but can I still use the keyed
                            username
                            and password as variables and go furhter to for instance a database with
                            them. I admit I am a newbie but if you don't ask you don't get any
                            answers.
                            /Lennart- Hide quoted text -
                            >
                            - Show quoted text -
                            >
                            What is happening with the way that you have coded your script (if
                            you've done it correctly) is that the first time it gets executed, it
                            will display the form. Then when you click "Sign Up" the same script
                            is executed again, but this time it detects that it has been run due
                            to a valid form submission and the does whatever other processing you
                            have asked it to do.
                            >
                            An empty "action" parm just does the submission back to the current
                            URL, the same as the php_self should have done.
                            >
                            Did the submit work OK using my suggestion?
                            >
                            Thanks. Your suggested code worked as expected and accepted the inouts an
                            took care of them.
                            Just the follow question as above - can I in your script use the input names
                            as variables for further actions?
                            /Lennart- Hide quoted text -
                            >
                            - Show quoted text -
                            I don't understand the question. I didn't supply any script.
                            Please re-phrase it?

                            Comment

                            • Lennart Anderson

                              #15
                              Re: HTTP 403


                              "Captain Paralytic" <paul_lautman@y ahoo.comskrev i meddelandet
                              news:1171298366 .305046.54310@m 58g2000cwm.goog legroups.com...
                              On 12 Feb, 16:24, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                              wrote:
                              >"Captain Paralytic" <paul_laut...@y ahoo.comskrev i
                              >meddelandetnew s:1171297244.09 9838.287800@k78 g2000cwa.google groups.com...
                              >>
                              >>
                              >>
                              >>
                              >>
                              On 12 Feb, 15:59, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                              wrote:
                              >"Captain Paralytic" <paul_laut...@y ahoo.comskrev i
                              >meddelandetnew s:1171295377.12 4061.210900@s48 g2000cws.google groups.com...
                              >>
                              On 12 Feb, 15:41, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                              wrote:
                              >"Captain Paralytic" <paul_laut...@y ahoo.comskrev i
                              >meddelandetnew s:1171293983.05 6633.220620@j27 g2000cwj.google groups.com...
                              >>
                              On 12 Feb, 15:13, "Lennart Anderson" <lennart.ander. ..@tele2.se>
                              wrote:
                              >"Captain Paralytic" <paul_laut...@y ahoo.comskrev i
                              >meddelandetnew s:1171292908.02 2502.97460@s48g 2000cws.googleg roups.com...
                              >>
                              On 12 Feb, 15:06, "Lennart Anderson"
                              <lennart.ander. ..@tele2.se>
                              wrote:
                              >"Satya" <satya61...@gma il.comskrev i
                              >meddelandetnew s:1171087978.82 7105.134470@h3g 2000cwc.googleg roups.com...
                              >>
                              On Feb 8, 3:59 am, "Lennart Anderson"
                              <lennart.ander. ..@tele2.se>
                              wrote:
                              >I have finally managed to get Apache 2.2.4, PHP 5.2.0 and
                              >MySQL
                              >to
                              >talk
                              >to
                              >each other. Everything seems to work OK when dealing with
                              >databases
                              >but
                              >as
                              >soon as I use a php-script that use $_server the browser
                              >will
                              >throw
                              >me
                              >away
                              >and give me HTTP 403.
                              >>
                              >It has worked before but that was before I got the
                              >communicatio n
                              >to
                              >work
                              >with MySQL
                              >>
                              >Any ideas or solutions are very much appreciated.
                              >>
                              >/Lennart
                              >>
                              ---------------------
                              I see no reason for this.
                              if you are using $_server then use $_SERVER['key'];
                              >>
                              >Thats is exactly how I'm doing. Still the browser will
                              >through
                              >me
                              >away
                              >and
                              >denies to show the page, just saying HTTP 403.
                              >/Lennart- Hide quoted text -
                              >>
                              >- Show quoted text -
                              >>
                              Care to share some of the code?
                              >>
                              >This is the simple test code that causes the HTTP403
                              ><form action="<?=$_SE RVER['PHP_SELF']?>" method="post">
                              >Username: <input type="text" name="username" >
                              ><br />
                              >Password: <input type="password" name="password" >
                              ><br /><br />
                              ><input type="submit" name="submit" value="Sign Up">
                              >>
                              >/Lennart- Hide quoted text -
                              >>
                              >- Show quoted text -
                              >>
                              OK, now when you say "I use a php script", when aer you
                              considering
                              it
                              to be used?
                              Do you get the form displayed but get the error when you press
                              "Sign
                              Up" or do you not get the form displayed at all?
                              >>
                              >When ran I get the page and give ensers to the two inputs.
                              >The browser reacts with HTTP 403 when I press the submit-button
                              >/Lennart- Hide quoted text -
                              >>
                              >- Show quoted text -
                              >>
                              OK, so what you said first was incorrect. You are using the script
                              to
                              produce the form. So it is not the act of accessing $_SERVER per se
                              that is causing the 403. You are getting the 403 when you try to
                              submit the form to the "address" that is output by the original php
                              call.
                              >>
                              To be honest, you don't really need that call for what you are
                              doing.
                              By default the form will submit to the same address that is in the
                              address bar, so try coding the form as
                              >>
                              <form action="" method="post">
                              Username: <input type="text" name="username" >
                              <br />
                              Password: <input type="password" name="password" >
                              <br /><br />
                              <input type="submit" name="submit" value="Sign Up">
                              >>
                              and see what happens.
                              >>
                              >Thanks. I think I see what you mean but can I still use the keyed
                              >username
                              >and password as variables and go furhter to for instance a database
                              >with
                              >them. I admit I am a newbie but if you don't ask you don't get any
                              >answers.
                              >/Lennart- Hide quoted text -
                              >>
                              >- Show quoted text -
                              >>
                              What is happening with the way that you have coded your script (if
                              you've done it correctly) is that the first time it gets executed, it
                              will display the form. Then when you click "Sign Up" the same script
                              is executed again, but this time it detects that it has been run due
                              to a valid form submission and the does whatever other processing you
                              have asked it to do.
                              >>
                              An empty "action" parm just does the submission back to the current
                              URL, the same as the php_self should have done.
                              >>
                              Did the submit work OK using my suggestion?
                              >>
                              >Thanks. Your suggested code worked as expected and accepted the inouts an
                              >took care of them.
                              >Just the follow question as above - can I in your script use the input
                              >names
                              >as variables for further actions?
                              >/Lennart- Hide quoted text -
                              >>
                              >- Show quoted text -
                              >
                              I don't understand the question. I didn't supply any script.
                              Please re-phrase it?
                              >
                              OK Script could be the wrong word. You suggested an other code that could
                              do, and did, the same task but in an other way and then my follow question
                              was if I, if using your code, can use the given inputs, username and
                              password, as variables for further actions?
                              Sorry if I was not clear enough
                              /Lennart


                              Comment

                              Working...