shurix Posted August 17, 2008 Report Share Posted August 17, 2008 Vajag augšuplādēt uz servera palielus failus caur php scriptu, bet serverim stāv defaultie uzstādijumi. Post_max_size = 8M un upload_max_size ari maziņš. Kā es varētu tos mainīt nemainot pašu php.ini. Ar htaccess? Link to comment Share on other sites More sharing options...
Pentiums Posted August 17, 2008 Report Share Posted August 17, 2008 http://lv.php.net/ini_set Link to comment Share on other sites More sharing options...
pilots Posted August 17, 2008 Report Share Posted August 17, 2008 Neaizmirsti nomainīt arī skripta max izpildes laiku. Link to comment Share on other sites More sharing options...
shurix Posted August 17, 2008 Author Report Share Posted August 17, 2008 Nomainiju un ar phpinfo paskatijos. Mainijās tikai memory_limit un max_execution_time. Piemēram post_max_size nevarēja nomainīt. Link to comment Share on other sites More sharing options...
shurix Posted August 18, 2008 Author Report Share Posted August 18, 2008 Nezinat kapēc nemainijās upload_max_filesize ini_set('upload_max_filesize', '140M'); Link to comment Share on other sites More sharing options...
bubu Posted August 18, 2008 Report Share Posted August 18, 2008 Pentiums dotajā linkā skaidri un gaiši rakstīts: Not all the available options can be changed using ini_set(). There is a list of all available options in the appendix. Un appendix linkā: upload_max_filesize "2M" PHP_INI_PERDIR PHP_INI_PERDIR 2 Entry can be set in php.ini, .htaccess or httpd.conf Link to comment Share on other sites More sharing options...
fest Posted August 20, 2008 Report Share Posted August 20, 2008 Pieļauju domu, ka tas ir saistīts ar to, ka tavs skripts izpildās tikai pēc failu ielādes, līdz ar to kļūdu izmet pirms tu vispār pie vadības esi ticis. Un ne visi serveri ļauj mainīt php settingus .htaccess failos. Link to comment Share on other sites More sharing options...
Recommended Posts