Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7894811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:29:23+00:00 2026-06-03T07:29:23+00:00

Can someone point me where am I doing it wrong. This is my code:

  • 0

Can someone point me where am I doing it wrong. This is my code:

<?php 
    $link = "http://api.stackexchange.com/2.0/users/534755?site=stackoverflow";
    $var = file_get_contents($link);
    echo $var;    
?>

And this is what I get if I run this snippet:

‹ì½`I–%&/mÊ{JõJ×àt¡€`$Ø@ìÁÍæ’ìiG#)«*ÊeVe]f@Ìíť¼÷Þ{ï½÷Þ{ï½÷º;ťN'÷ßÿ?\fdlöÎJÚÉž!€ªÈ?~|?"~ñGE›/šŹ}ï´nòú÷/f=ºoÿÁýû#ù ½^å=ú¨Î/ЦÍë|öÑè£iťgmQ-ÿYÖÒ—»{w<|¸ûé§£ŹfE³*³ëß™-ðÚ‹âmUfôʪ®Î‹2ÿý‹Ev/æm»zt÷îÕÕÕø¢Î.³6«ÇÓjqW~½›äû÷ïg³éÁìáù§ÓüÓÉÁäüàþÎùÎìáîÁìÓßcöY1Ë—m1­–¿°þìåçÔEť¯Ö-ãECØyàðûOçÙò"'|¯?z´ûæ*Ïß|µ¨–í£Ś}ù‹ÖYMd¡£^çYŤW‰2<nüRfMûûgÓiÞ4†€÷î}zïáîÎÁž~»¨fÅy‘ÏÜ÷{÷vöîÝ£>Šæ÷Ï«²ºÎé‹ó¬lrz§X¾u4mÚlú¶ºÌëó²ºb¢b"›»2­w—fJ®òIC³ÿû¯ë2ś²¸·“u9ÙnÚõ¬¨Ú—ÕT©ûÑI]ѯBã¨ÖË–ùfïþþÇ„â$›ÑÐùsâ¬_üÑEUζMQ^‚V÷¨M]-€¡íÿ’¯Úß¿–Áîìü’ïŹ>úEëªÍ~ÿ:_dŲX^ôæÓEöŽ€ìÄyÖ±jCŠ_òÿÿÿ”ÄÐ

Whereas this is what I get if I navigate to the given link in my browser:

{"items":[{"user_id":534755,"user_type":"registered","creation_date":1291799166,"display_name":"Nikola","profile_image":"http://www.gravatar.com/avatar/e8e455adc8d9f6ce6b8bf850f0d918d6?d=identicon&r=PG","reputation":507,"reputation_change_day":0,"reputation_change_week":0,"reputation_change_month":12,"reputation_change_quarter":57,"reputation_change_year":126,"age":26,"last_access_date":1336387120,"last_modified_date":1332302337,"is_employee":false,"link":"http://stackoverflow.com/users/534755/nikola","website_url":"http://www.lightbulb-studio.com","location":"Croatia","account_id":254997,"badge_counts":{"gold":0,"silver":3,"bronze":14},"accept_rate":100}],"quota_remaining":289,"quota_max":300,"has_more":false}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T07:29:24+00:00Added an answer on June 3, 2026 at 7:29 am

    The response is gzip-compressed. You’ll need to unzip it.

    Try something like:

    <?php 
        $link = "http://api.stackexchange.com/2.0/users/534755?site=stackoverflow";
        $data = file_get_contents($link);
        $var  = gzinflate(substr($data, 10, -8));
        echo $var;
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am sure I am just doing this wrong, can someone point me in
Can someone please tell me what I'm doing wrong in this Python code sample?
I'm hoping I'm doing something wrong here and someone can point me in the
Can someone point out to me what I'm doing wrong or where my understanding
Can someone please tell me what's wrong with this code? Basically what I am
Can someone tell me what I am doing wrong here? I use this method
Can someone point me in the right direction? I wish to distribute a WCF
Can someone point me to a public domain (or MIT- or BSD-license) library for
Can someone point me to an article (or discuss here) that explains how an
Can someone point me to an article that shows the dropdownlist being populated from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.