Vecteevs Posted February 20, 2011 Report Share Posted February 20, 2011 Sveiki, problēma ir tāda, ka mans datora localhost neļaj augšuplādēt lielākus failus. Palasīju internetā un uzgāju ka lielākus vailus par 2MB nevar augšuplādēt un ir jāveido speciāls htaccess fails. Kāds var pastāstīt kas viņā ir jāraksta iekšā? Quote Link to comment Share on other sites More sharing options...
Code Posted February 20, 2011 Report Share Posted February 20, 2011 Pārbaudi php.ini vērtības šiem mainīgajiem upload_max_filesize post_max_size max_execution_time max_input_time memory_limit Quote Link to comment Share on other sites More sharing options...
Vecteevs Posted February 20, 2011 Author Report Share Posted February 20, 2011 man tāda faila nav.. rekur ir upload.php http://paste.php.lv/e0b19b5398a6079acaad8f63d7e010d3?lang=php un index lapa http://paste.php.lv/6420534b938f323979d4f259db7783a4?lang=php Quote Link to comment Share on other sites More sharing options...
Code Posted February 20, 2011 Report Share Posted February 20, 2011 Uztaisi jaunu php failu ar saturu <?php phpinfo(); ?> Atver viņu un tur sākumā jārāda ceļu līdz šim (php.ini) failam ("Configuration File Path" vai līdzīgi). BTW tur pat arī vari apskatīt manas iepriekš pieminētām vērtības, bet labot gan vajadzēs iekš php.ini Quote Link to comment Share on other sites More sharing options...
nikidijs Posted February 20, 2011 Report Share Posted February 20, 2011 Default tas php.ini fails laikam ir iekš C:\WINDOWS Quote Link to comment Share on other sites More sharing options...
Vecteevs Posted February 20, 2011 Author Report Share Posted February 20, 2011 atradu tajā php.ini tikai upload_max_filesize un man bija 2M. nomainīju uz 200M. Rāda ka ķipa fails ir augšuplādēts, bet viņa reāli nav. bildes un mazakus failus var augšuplādēt. Quote Link to comment Share on other sites More sharing options...
nikidijs Posted February 20, 2011 Report Share Posted February 20, 2011 Tur jābūt visiem tiem ko Code uzskaitija Quote Link to comment Share on other sites More sharing options...
Vecteevs Posted February 20, 2011 Author Report Share Posted February 20, 2011 (edited) tagad man izskatās šādi, ja kas jānomaina lūdzu sakiet, no šī īsti nesaprotu. ;;;;;;;;;;;;;;;; ; File Uploads ; ;;;;;;;;;;;;;;;; ; Whether to allow HTTP file uploads. file_uploads = On ; Temporary directory for HTTP uploaded files (will use system default if not ; specified). ;upload_tmp_dir = ; Maximum allowed size for uploaded files. upload_max_filesize = 200M ; Maximum size of POST data that PHP will accept. post_max_size = 200M ;;;;;;;;;;;;;;;;;;; ; Resource Limits ; ;;;;;;;;;;;;;;;;;;; max_execution_time = 30 ; Maximum execution time of each script, in seconds max_input_time = 60 ; Maximum amount of time each script may spend parsing request data memory_limit = 200M ; Maximum amount of memory a script may consume (8MB) un pats dīvainākais ir tas ka tas phpinfo rāda vecos datus bet php.ini ir mani jaunie dati. restartēju datoru bet tas pats.. EDIT: Liels paldies, beidzot sanāca.. laikam bija jāpagaida līdz dati atjaunojas. tagad viss iet. Paldies! :) Edited February 20, 2011 by Vecteevs Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.