problem with examples PHP API

Issue No. 176

Type

Bug

Status

Closed

Reported By

José Orlando Cruz

Component

API

Resolution

Not a Bug

Votes

1

Created

7/Jul/14 10:59 AM EDT

Closed

7/Jul/2014 2:22 PM EDT

Description

Hi, i have problem using examples for PHP, i'm just configuring lines: // Replace with your access token $ACCESS_TOKEN = 'xxxxxxx-My-Token-Access-xxxxxx'; // Replace with your bot name and email/website to contact if there is a problem // e.g., "mybot/0.1 (https://erikberg.com/)" $USER_AGENT = 'nba-fantasy/0.1 (myemail@domain.com.do)'; but, when running script, return this error: Warning: fopen(compress.zlib://https://erikberg.com/events.json?sport=nba&date=20130414): failed to open stream: operation failed in /Applications/XAMPP/xamppfiles/htdocs/minisitemlb/mlb.php on line 48 handle error... please help my with this issues, thank you.

Closing Comment

Verify your PHP version and that you have the json, OpenSSL, and ZLib modules installed and enabled as specified under "Requirements" at /api/examples/php.