Sign in external page automatically with PHP.

Discussion in 'PHP' started by reinaldo83, Mar 26, 2008.

  1. #1
    Hi.

    Can you give me an example php code or real code to access private zone of a page???

    I mean, if i'd like to access my e-mail account through using PHP code, i can???

    For examle, i'd like to collect the e-mails of my inbox (this is just an example) and i'd like to do this with php code automatically. How can i make the script loads the external e-mail site, input the parameters in that site (like username and password) and the script automatically clicks "Log in" button.

    I'm thinking the way to load a site is invoking include method as follow:

    include ("http://www.gmail.com/");

    but i'm not sure and if it, i don't know the exact code to provide this my username and password. I'd like to do this for accessing my e-mail with php code, not manually.

    Is there any way to do this?.

    I'd like to do this in https sites too. Can you help me with this?. I think i will have to use cookies but i will need help with this.

    Thanks.

    Reinaldo.

    P.D.: Sorry for my english, i know it isn't very good.
     
    reinaldo83, Mar 26, 2008 IP
  2. matthewrobertbell

    matthewrobertbell Peon

    Messages:
    781
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You should real about cURL, it can do everything you need.
     
    matthewrobertbell, Mar 26, 2008 IP
  3. reinaldo83

    reinaldo83 Peon

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Can you help me with this a little.

    I read that cURL can help me but i'm not sure how to use it.

    Maybe you can say to me the way i have to follow to find all information i need.

    Can you?

    Thanks in advance.

    Reinaldo.
     
    reinaldo83, Mar 26, 2008 IP
  4. Morishani

    Morishani Peon

    Messages:
    239
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    All the things you need is here
     
    Morishani, Mar 26, 2008 IP