Professional Web Applications Themes

Get info from a site with PHP - PHP Development

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]...

  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. #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

  3. #3

    Default Re: Get info from a site with PHP

    On Sat, 04 Sep 2004 12:03:47 GMT, Jean
    <blehboeitmijniet.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 / <andyandyh.co.uk> / <http://www.andyh.co.uk>
    <http://www.andyhsoftware.co.uk/space> Space: disk usage ysis tool
    Andy Hassall Guest

  4. #4

    Default Re: Get info from a site with PHP

    Jean <blehboeitmijniet.be.blah.com.boe.bah.bleh.zie.je .eindigt.met.punt.invalid>
    wrote in message news:<Dai_c.236083$ZL.12053557phobos.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

  5. #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

  6. #6

    Default Re: Get info from a site with PHP

    "Jean"
    <blehboeitmijniet.be.blah.com.boe.bah.bleh.zie.je .eindigt.met.punt.invalid>
    wrote in message news:Dai_c.236083$ZL.12053557phobos.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

Similar Threads

  1. How do I work out the site logon info in the contributekey?
    By Oyinade in forum Macromedia Contribute Connection Administrtion
    Replies: 1
    Last Post: October 3rd, 08:03 PM
  2. User upgrade - now cannot find site info
    By mjwillyone in forum Macromedia Dynamic HTML
    Replies: 0
    Last Post: July 13th, 07:22 PM
  3. Newbie: grab info from a site
    By steve in forum PHP Development
    Replies: 1
    Last Post: October 20th, 08:05 AM
  4. http://www.jameshicks.info (flash site)
    By James in forum Macromedia Flash
    Replies: 1
    Last Post: August 14th, 04:54 PM
  5. HELP!!! Dreamweaver ate all my site's info!
    By davidlieb webforumsuser@macromedia.com in forum Macromedia Dreamweaver
    Replies: 5
    Last Post: July 14th, 09:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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