help with php.ini

zimu

Diamond Member
Jun 15, 2001
6,209
0
0
so here's the deal.
i dont' have access to the php.ini file on my server- its shared hosting.

i had previously added the line "php_value upload_max_filesize 5000000" in my .htaccess file, which overrode the upload_max_filesize setting, as could be seen if i ran phpinfo();

however now my host has introduced PHPsuexec "for security purposes" and that disabled php code in .htaccess. so now 1/2 my subdomains stop working on account of numerous settings being f**ed up, and i'm getting a server misconfiguration error, which disappears if i remove the php code but then cuts down 90% of the features of my site.



my host says i can just add a php.ini file in a folder and put in php there and it will work. i tried that, putting the same upload_max_filesize deal, but phpinfo does not reflect this. obviously nothings been overridden.

suggestions? comments? HELP? please???
 

zimu

Diamond Member
Jun 15, 2001
6,209
0
0
yep, have tried that. put the following into a php file;

<?php
ini_set('upload_max_filesize', '5000000');
phpinfo();
?>

result- still showing 2MB as my file size limit.

is there no other way to globally effect php variables, the way htaccess does??