Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out of memory on plurkOAuth.php line 106 #2

Open
ghost opened this issue Dec 25, 2011 · 3 comments
Open

Out of memory on plurkOAuth.php line 106 #2

ghost opened this issue Dec 25, 2011 · 3 comments

Comments

@ghost
Copy link

ghost commented Dec 25, 2011

I have this code

define("CONSUMER_SECRET","asdlhgasdhg135");
define("ACCESS_TOKEN","ReqnFVaBasdfgs5t321Rebd");
define("ACCESS_TOKEN_SECRET","kEshxx3pox13t6aqefrhqaPaprGfA6F2c6xYSU");
define("CONSUMER_KEY","s6tNuF91236ta4B7NU");

require('plurkAPI.php');

$plurk = new PlurkAPI(CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET);
$json = $plurk->callAPI('/APP/Profile/getPublicProfile', array('user_id' => 'clsung'), true);
$json = $plurk->callAPI('/APP/Profile/getOwnProfile');
$json = $plurk->callAPI('/APP/FriendsFans/getFriendsByOffset', array ('user_id' => 'clsung'));

When I run this one, I get this error:

Fatal error: Out of memory (allocated 61865984) (tried to allocate 19456 bytes) in /home/sxtest/public_html/test123/plurk/plurkOAuth.php on line 106

Why is this happening. Any help for this! Thanks! :)

@clsung
Copy link
Owner

clsung commented Dec 27, 2011

Hi, will you try modify your php.ini, and set memory_limit to larger number? e.g.

memory_limit = 64M

@aammadullah
Copy link

use require_once(); instead of require();

@clsung
Copy link
Owner

clsung commented Oct 12, 2016

Thanks, I've stopped developing in PHP for years, let's see how it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants