Get info from a site with PHP

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

  1. #1

    Default 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 numbers from site A.
    Is this possible? Site A has everything in tables.

    Also an extra part: it has to log in.

    I'm not asking the coplete solution, just a little push.

    TIA.

    J.
    --
    My Project Page.
    [url]http://www.npi.be[/url]
    Jean 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. 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...
    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. Upload files to site, upload info to SQL?
      I want to create a _SECURE_ interface from an html form that allows certain people within my company to upload files into a predetermined directory...
  3. #2

    Default Re: Get info from a site with PHP

    Jean wrote:
    > 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 numbers from site A.
    > Is this possible? Site A has everything in tables.
    >
    > Also an extra part: it has to log in.
    >
    > I'm not asking the coplete solution, just a little push.
    You can use wget (with help of system()) to fetch the data from the remote
    site to your site B.


    //Aho
    J.O. Aho Guest

  4. #3

    Default Re: Get info from a site with PHP

    On Sat, 04 Sep 2004 12:03:47 GMT, Jean
    <bleh@boeitmijniet.be.blah.com.boe.bah.bleh.zie.je .eindigt.met.punt.invalid>
    wrote:
    >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 numbers from site A.
    >Is this possible? Site A has everything in tables.
    >
    >Also an extra part: it has to log in.
    >
    >I'm not asking the coplete solution, just a little push.
    Certainly possible, since you can open URLs with PHP, e.g. with fopen.

    However, it's probably easier with Perl, as WWW::Mechanize and
    HTML::TableExtract are particularly good at this sort of thing.

    --
    Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
    <http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
    Andy Hassall Guest

  5. #4

    Default Re: Get info from a site with PHP

    Jean <bleh@boeitmijniet.be.blah.com.boe.bah.bleh.zie.je .eindigt.met.punt.invalid>
    wrote in message news:<Dai_c.236083$ZL.12053557@phobos.telenet-ops.be>...
    >
    > I was wondering if this is possible.
    Yes.
    > Maybe someone could push me towards the right direction.
    Well, here's a little problem:
    > Also an extra part: it has to log in.
    Since you forgot to mention what authentication mechanism the target
    site uses, it is difficult to suggest anything in particular.

    Cheers,
    NC
    Nikolai Chuvakhin Guest

  6. #5

    Default Re: Get info from a site with PHP

    Hello,

    On 09/04/2004 09:03 AM, Jean wrote:
    > 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 numbers from site A.
    > Is this possible? Site A has everything in tables.
    >
    > Also an extra part: it has to log in.
    >
    > I'm not asking the coplete solution, just a little push.
    You may want to try this HTTP client class that you can use to retrieve
    pages and also submit forms and collect cookies that are passed to the
    next pages which is something that you most likely need to login that site:

    [url]http://www.phpclasses.org/httpclient[/url]


    --

    Regards,
    Manuel Lemos

    PHP Classes - Free ready to use OOP components written in PHP
    [url]http://www.phpclasses.org/[/url]

    PHP Reviews - Reviews of PHP books and other products
    [url]http://www.phpclasses.org/reviews/[/url]

    Metastorage - Data object relational mapping layer generator
    [url]http://www.meta-language.net/metastorage.html[/url]
    Manuel Lemos Guest

  7. #6

    Default Re: Get info from a site with PHP

    "Jean"
    <bleh@boeitmijniet.be.blah.com.boe.bah.bleh.zie.je .eindigt.met.punt.invalid>
    wrote in message news:Dai_c.236083$ZL.12053557@phobos.telenet-ops.be...
    > 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 numbers from site A.
    > Is this possible? Site A has everything in tables.
    >
    > Also an extra part: it has to log in.
    >
    > I'm not asking the coplete solution, just a little push.
    [url]http://www.php.net/stream_context_create[/url]


    Chung Leong 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