How to read HTTP request using php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ghjk
    Contributor
    • Jan 2008
    • 250

    How to read HTTP request using php

    I want to read a HTTP request using php. How can I do that? I searched. But still i don't have any idea. Could someone please help me?
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    I'm not sure what you're talking about.

    What are you trying to do?

    It's always good to tell us what you're trying to do rather than "how" you're trying to accomplish it. More often than not there might be an easier way than the "how" you've chosen.

    are you looking for $_POST and $_GET globals?


    Dan

    Comment

    • ghjk
      Contributor
      • Jan 2008
      • 250

      #3
      Originally posted by dlite922
      I'm not sure what you're talking about.

      What are you trying to do?

      It's always good to tell us what you're trying to do rather than "how" you're trying to accomplish it. More often than not there might be an easier way than the "how" you've chosen.

      are you looking for $_POST and $_GET globals?


      Dan

      I want to listen port 15000 and server send HTTP request to that port. What I want to do is , listen port 15000 and when http request comes read the message. There is a message format(http://IP/test/test.php?messag e=test01%01%&fr om=xxx)

      Comment

      • Gulzor
        New Member
        • Jul 2008
        • 27

        #4
        Originally posted by ghjk
        I want to listen port 15000 and server send HTTP request to that port. What I want to do is , listen port 15000 and when http request comes read the message. There is a message format(http://IP/test/test.php?messag e=test01%01%&fr om=xxx)
        Did you have a look at Zend Framework ? The Zend_Http could help, but you need PHP5

        Comment

        • pbmods
          Recognized Expert Expert
          • Apr 2007
          • 5821

          #5
          Heya, ghjk.

          Simply configure Apache to listen over port 15000.

          Comment

          • ghjk
            Contributor
            • Jan 2008
            • 250

            #6
            Originally posted by pbmods
            Heya, ghjk.

            Simply configure Apache to listen over port 15000.

            How can i do that? Could you please tell me?

            Comment

            • realin
              Contributor
              • Feb 2007
              • 254

              #7
              Originally posted by ghjk
              How can i do that? Could you please tell me?
              Open httpd.conf file in your text editor.
              Find this line:
              Listen 80

              change it to:
              Listen 85

              Save and restart Apache.
              Always restart Apache after making changes to a conf file and don't foget to make a backup before making any edits.

              now things would work using http://locahost:85

              cheers !!

              Comment

              • ghjk
                Contributor
                • Jan 2008
                • 250

                #8
                I did that. Thx for all. I'm just use [PHP]$_GET[/PHP] and pass parameters from URL.

                Comment

                Working...