file_get_contents() not giving complete data

Discussion in 'PHP' started by poojamishra, Aug 30, 2007.

  1. #1
    Hi,


    I am trying to get view source of a link: networksolutions.com/whois/results.jsp?domain=website through file_get_contents() command it is not showing the complete source,the emails are missing. why is it happening so.. how can i get the emails on it.

    thanks,


    Pooka
     
    poojamishra, Aug 30, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    I was having the same issue when I just tried it, and I've been able to fix it putting this line above file_get_contents():
    
    ini_set('user_agent', $_SERVER['HTTP_USER_AGENT']);
    
    PHP:
     
    nico_swd, Aug 30, 2007 IP