Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [php] upload_max_filesize zmiana
Forum PHP.pl > Forum > Przedszkole
Manfias
Witam, Chciałem zmienić upload_max_filesize na <input name="MAX_FILE_SIZE" type="hidden" value="10737418240" /> albo jakis ? upload limit pliku 5MB
Kod
<eyeUploadX>
    <config>
        <upload_max_filesize>' . $maxUpload_bytes . '</upload_max_filesize>
    </config>
    <labels>
        <addFiles caption="' . htmlspecialchars(i18n('translate',array('Add files')),ENT_QUOTES,'UTF-8') . '" />
        <maxUploadFilesize caption="' . htmlspecialchars(i18n('translate',array('Max filesize allowed: %s MB', array($maxUpload_mbytes))),ENT_QUOTES,'UTF-8') . '" />
        <progressFile caption="' . htmlspecialchars(i18n('translate',array('Transfering: ')),ENT_QUOTES,'UTF-8') . '" />
        <progressInit caption="' . htmlspecialchars(i18n('translate',array('Add files to transfer, then press Upload now!')),ENT_QUOTES,'UTF-8') . '" />
        <removeFile caption="' . htmlspecialchars(i18n('translate',array('Remove')),ENT_QUOTES,'UTF-8') . '" />
        <upload caption="' . htmlspecialchars(i18n('translate',array('Upload now!')),ENT_QUOTES,'UTF-8') . '" />
    </labels>
</eyeUploadX>


Z góry dzięki
athei
Poczytaj - http://www.google.com/search?name=f&hl...ad_max_filesize
Manfias
mam hosting cpanel i niewiem gdzie jest php.ini albo coś. widze ze jest limit 20M a chce go ustawic na 5M jak to zrobic w php.ini albo .htacces albo coś ? Prosze o pomoc
ahold
Popatrz tutaj:

http://www.vbulletin.com/forum/showthread.php?t=198623
Manfias
nie działa
CODE
php_value post_max_size 5M
php_value upload_max_filesize 5M
php_value max_execution_time 600


i pokazal sie blad

CODE
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@dfhsdgh.pl and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at system-24.pl Port 80
em1X
ustaw w php przy pomocy ini_set
Manfias
przepraszam, jestem zielonym i prosze o wyjansic, albo podajcie gotowy php
Manfias
CODE
<?
string ini_set ( string $upload_max_filesize , string $upload_max_filesize )
?>




dobrze? Sami niewiem
em1X
eh

To jest tylko legenda, żebyś wiedział jakich typów danych funkcja oczekuje. Zresztą poniżej masz przykłady. Po angielsku to słowo to examples.
  1. <?php
  2. ini_set('upload_max_filesize', '124567890');
  3. ?>


Php zmieni wartość na czas trwania tego programu. Ten kod powinien być uruchamiany za każdym razem przed zgraniem pliku.
Manfias
a zapisac php.ini ?
em1X
Sets the value of the given configuration option. The configuration option will keep this new value during the script's execution, and will be restored at the script's ending.

Czas pouczyć się angielskiego, od tego są manuale: Ustawa wartość konfiguracyjną. Będzie trzymana na czas trwania skryptu (...)
Manfias
CODE
<config>
<upload_max_filesize>' ini_set('upload_max_filesize', '5000') '</upload_max_filesize>
</config>


dobrze?
em1X
nie mam pojęcia co to jest
Manfias
CODE
<?php
ini_set('upload_max_filesize', '124567890');
?>


ten gdzie zapsiac?
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.