php.ini

XColl

New Member
Messages
1,054
Reaction score
2
Points
0
Where is php.ini located? I need to edit the size of uploading with a php form. :sleep2:
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
You can't edit php.ini.. Only someone with access to it can. :)

Use the function ini_set() instead.

http://x10hosting.com/showthread.php?t=13455 said:
NedreN said:
On whatever page you want to upload more to the site with, add this at the top:

PHP:
ini_set('post_max_size', '20M');
ini_set('upload_max_filesize', '20M');

I haven't tested this, but it should work.
 

XColl

New Member
Messages
1,054
Reaction score
2
Points
0
Well... I'm trying to upload something with e107 and it says its at currently 5MB, and plus I don't know how to use those commands on e107... lol
 
Top