Jump to content

Newbie Needs Help With php.ini


AustinMatherne

Recommended Posts

Hi, I don't know all that much about PHP, my knowledge is mostly limited to HTML/CSS.

 

I'm using phpBB (3.0.2), and I am unable to edit more then six forums at a time, when selecting Groups or Users forum permissions.

 

If I select more then six forums and then select "mark all", when I click the "Apply permissions" or "Apply all permissions" button I get an error saying "The submitted form was invalid. Try submitting again.".

 

First, I want to say I've already tried to get help from phpBB, and from my hosting provider. You can view the topic I started in the phpBB forums here.

 

I was told by a member of the Development Team for phpBB that

Your server is configured to only use a limited number of POST parameters. That's either a PHP (Suhosin) or httpd setting.

 

So I contacted my hosting provider and they told me

Dear Customer,

 

If you need to modify any php settings in local php.ini file. To use it you should just create a php.ini file under a folder with your PHP scripts with the necessary PHP settings. For example, if you need to change the upload_max_filesize or register_globals for one of your scripts under your public_html, you should create a php.ini file under the folder with the following content:

upload_max_filesize = 8M

register_globals = On

 

What nobody seems to be able to tell me is what I need to put in the php.ini file to fix this. I figured, I would get more help at a dedicated PHP forum, so here I am.

 

Any help is appreciated,

~ Austin

Link to comment
https://forums.phpfreaks.com/topic/115299-newbie-needs-help-with-phpini/
Share on other sites

I dont know what the exact line in the php.ini file is that restricts that as I have never had that problem, but you want to add to the header of the page that your trying to do that on (this means before and HTML is printed)

 

set_ini(0,0);

 

Replace the 0's with whatever settings need to be changed. And remember, the set_ini has to be called before any other code except for PHP. Always do at the top of your page.

 

I believe the code that you would want to change is post_max_size

 

so the code would be

set_ini('post_max_size','24M'); 

 

That should fix your problem

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.