Change Php Memory Limit in Shared Hosting

One of my client asked me to solve a small bug in one of my php application. I am not a php guru but I am a dirty hacker :) anyway the problem was exceeding memory limit. in shared hosting it was limited with 8M from php.ini

I made a small research but could not find any document about it in ISP's page. and asked to my uncle google. he could not find any copy paste code there too :) and at last of course for the php I have to check php.net and its documentation little bit reading here is the line which saves the day:

ini_set('memory_limit','128M');

it was working very fine in 8mb then it will work for a long time in 128m :) thats enough for that.

Comments

Popular posts from this blog

Postgresql group by day, week and month examples

Spring-boot vs Quarkus