Memory overusage and functions : Allowed memory size exhaust

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: Memory overusage and functions : Allowed memory size exh

Post by johnj » Sun Sep 15, 2013 5:48 am

try using include_once() in your code, like this:

Code: Select all

for($q=1;$q<=30;$q++)
{
   include_once "/usr/www/users/xxx/function" . $q . ".php";
}

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 7 guests