Newbie: grab info from a site

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default Newbie: grab info from a site

    Hi,

    I am a *complete* newbie to PHP.
    After trying various things I managed to post in a site that contains a form where you enter a postal code and returns some info.

    The problem is how can i NOT display but *grab* (store) the information that i get back corresponding to that postal code?
    I can grab a web page into a file by using the PHP FILE command, but how do I do that for a post?

    Any help/guidance/links ould be greately appreciated.

    TIA
    -steve

    steve Guest

  2. Similar Questions and Discussions

    1. How do I work out the site logon info in the contributekey?
      Hi I'm trying to access the files for my website using ftp protocol software so that I can copy the entire website and transfer to a new host. ...
    2. User upgrade - now cannot find site info
      Friends, I created a Dreamweaver site on my computer and tested it by uploading it to the Web. Everything worked great. Then, our company's LAN...
    3. Get info from a site with PHP
      Hi, I was wondering if this is possible. Maybe someone could push me towards the right direction. Let's say i'm making site B, that gets a few...
    4. http://www.jameshicks.info (flash site)
      Any comments, suggestions? It's a work in progress... will be finishing it up and polishing this week before submitting to employers. thanks,...
    5. MAC - how to grab/edit .swf from site?
      http://www.hibrosoft.com/smartgrabber.php or flashcapture or flashsaver are 3 different ways to "grab" flas files from webpages when you are on a...
  3. #2

    Default Re: Newbie: grab info from a site

    steve wrote:
    >
    > The problem is how can i NOT display but *grab* (store) the information
    > that i get back corresponding to that postal code? I can grab a web page
    > into a file by using the PHP FILE command, but how do I do that for a
    > post?
    >
    > Any help/guidance/links ould be greately appreciated.
    >
    AFAIK POST is not support by the url-wrappers (file system functions e.g.
    file(...)). If you have libcurl built into PHP you can use that
    ([url]http://uk.php.net/manual/en/ref.curl.php[/url]), or you can use a socket
    connection ([url]http://uk.php.net/manual/en/function.fsockopen.php[/url]) and roll
    your own HTTP handler. You could even do it client side using hidden
    iframes and javascripts (but that's likely to get messy).

    HTH

    C.
    Colin McKinnon Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139