Go Back   Steam Users' Forums > Steam Discussions > Steam Community Discussion

Thread Tools Display Modes
Old 07-14-2013, 03:33 PM   #1
Join Date: Nov 2011
Reputation: 0
Posts: 11
Efficient ways of fetching IEconItems getSchema in PHP

I've been playing around with PHP and the steam web api for a bit now, and whilst for the most part things are going smoothly, file_get_contents takes quite a while to fetch the schema, taking anywhere from 30 - 60 seconds to load. It definitely doesn't seem to be the steam servers since if I just type in the api url into my browser the json loads almost instantly, and as far as I'm concerned my PHP .ini seems to be set up fine. This is what I'm currently using to load it, and it takes ages for it to print 'loaded'.

PHP Code:



$schema json_decode($file);

I was wondering what other methods I should use to fetch the schema more efficiently, preferably other than caching

Last edited by BubbaWoop: 07-14-2013 at 03:33 PM. Reason: Gotta add dem php tags
BubbaWoop is offline  
Reply With Quote
Old 07-15-2013, 05:06 AM   #2
Join Date: Sep 2008
Reputation: 4313
Posts: 13,598
I just timed it and it took 26 seconds in my web browser to load fully. Are you sure the problem is on your end?
Mangr0v3 is offline   Reply With Quote

Go Back   Steam Users' Forums > Steam Discussions > Steam Community Discussion

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

All times are GMT -7. The time now is 03:40 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2015, All Rights Reserved.