Activity Stream
48,167 MEMBERS
61024 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 10 of 10
  1.     
    #1
    Member

    Default how to get variable info after login using php

    hi guys,
    we use file_get_contents in php script to get content from page, but how to get info after login....?

    that is, it ask for password to access page, how to login using php itself and get the data.....??

    Thanks
    torrfriend Reviewed by torrfriend on . how to get variable info after login using php hi guys, we use file_get_contents in php script to get content from page, but how to get info after login....? that is, it ask for password to access page, how to login using php itself and get the data.....?? Thanks Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    Use curl first to login to the website and then store the cookies in a file. Then get new content using the cookie files saved previously.

  4.     
    #3
    Retired NinJa
    Website's:
    loledhard.com
    file_get_contents is used to fetch the data as it is from a url or a file.

    Use curl if u want to pass some data like login details.



    You don't hate Justin bieber.You hate the fact you ain't Justin Bieber!

  5.     
    #4
    Member
    Thanks soft and humo

    created a small script using curl,now able to login, storing cookies in text, and
    got static page after login

    Note:
    now only i understood how all bots collecting info and RSS.
    if CURL is not available means, then NO BOTS.

    EDIT1:
    DDOSING site is also possible using curl, i think so
    (i don't do any ddos, i am still a php learner - f**ck you vtc, no curl tut there.)


    EDIT2:
    1) any solution for site with captcha during login...??

  6.     
    #5
    Member
    @torrfriend: there are 2 solutions for captcha:
    - ocr, which you can't really rely on. also there is no real good implementation for it in php
    - decaptcher or similar captcha breaking apis. these are basically apis where on the other end real people are breaking the captchas for you. you have to pay for it on a per captcha basis
    Stream videos from RS directly | Earn up to $3/1000 views | RapidPlayer.org

  7.     
    #6
    Member
    Captcha is there exactly to prevent automated actions. Solving that won't be an easy job.

  8.     
    #7
    Member
    thanks for reply guys

    now i have 2 questions

    1) will the username/pass is send each time to target site for retrieval of data.....?? or just use username/pass for first time, then store in cookie.txt and use for whole session or whole day........??

    2) i am here to type captcha, so any way to display the captcha to me, so i can type in box and send it back

  9.     
    #8
    Member
    1) You can use the cookie till its valid. Have to check what is its expire date. It works the same way like the cookies in your browser, except the session cookies stay there. In your place I would simply do the login every time you need the data.

    2) It's possible, but it needs some coding to make it.
    get the form page > save the captcha image > display for yourself > type in and send > PHP curl posts all the data, including captcha

  10.     
    #9
    Member
    so is it possible to to get cookies (copy from browser) and paste in cookiefile....??
    then we can escape from login in curl and get contents .....??

  11.     
    #10
    Member
    I guess its possible if you use the correct format.

    ---------- Post added at 04:15 PM ---------- Previous post was at 03:58 PM ----------

    BTW,
    Quote Originally Posted by torrfriend View Post
    Note:
    now only i understood how all bots collecting info and RSS.
    if CURL is not available means, then NO BOTS.

    EDIT1:
    DDOSING site is also possible using curl, i think so
    (i don't do any ddos, i am still a php learner - f**ck you vtc, no curl tut there.)
    Try to learn Regex, for me that was another of this kind of "revelations"

    also, it's cool to be able to understand things like
    Code: 
    ((\b[0-9]+)?\.)?\b[0-9]+([eE][-+]?[0-9]+)?\b
    
    ^4[0-9]{12}(?:[0-9]{3})?$

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Where to add login info to Auto Transload in RL
    By Harshadewa in forum Web Development Area
    Replies: 10
    Last Post: 27th Aug 2010, 03:41 PM
  2. a programmer asked my cpalead login info, is this okay ؟
    By lana2008 in forum General Discussion
    Replies: 10
    Last Post: 8th Jul 2010, 05:13 AM
  3. variable locations
    By Spooky in forum vBulletin
    Replies: 2
    Last Post: 7th Jun 2010, 06:16 AM
  4. Variable in phpBB
    By SarMa in forum phpBB
    Replies: 11
    Last Post: 26th Mar 2010, 07:08 PM
  5. Need Help To add text variable in url
    By diablo9975 in forum Technical Help Desk Support
    Replies: 0
    Last Post: 27th Nov 2009, 07:05 AM

Tags for this Thread

BE SOCIAL