Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

CURL_EXEC - Allowed Memory Size of Bytes Exhausted

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

CURL_EXEC - Allowed Memory Size of Bytes Exhausted

Postby pradeepjangir » Sat Oct 05, 2013 3:38 am


We are crawling data from third party web for my web purpose using curl method.
When we crawl almost 5000 data then it show below mentioned error in curl_exec($ch) function line.

Error : Allowed memory size of XXXXXXXXX bytes exhausted (tried to allocate XXXXXXXXX bytes) in php.

so please tell me how to reset curl function. :help: :help: :help: :help: :help:

Best Regards,
Pradeep Jangid
New php-forum User
New php-forum User
Posts: 6
Joined: Tue Nov 30, 2010 2:39 am

Re: CURL_EXEC - Allowed Memory Size of Bytes Exhausted

Postby johnj » Sat Oct 12, 2013 12:38 am

One way - increase it using ini_set("memory_limit","30M");

Are you using a shared server? if "yes", then you need to change/add the entry in your .htaccess file.
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Return to PHP coding => General

Who is online

Users browsing this forum: Google Feedfetcher and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.