Implementing the file upload process with Zend

Hi, I am trying to implement a promotion for promotion with Zend, however I have not found detailed guides. A pointer will be helpful.

Thanks.

+3
source share
1 answer

I don’t remember ever seeing a fully detailed tutorial explaining how to get a progress bar to download from the Zend Framework; but here are some pointers that will help you a bit if you already know what PHP is, file uploads and Zend Framework ...

First of all, you will need one of these two PHP extensions:

, , ( , ).


"" ; APC; RFC 1867.

Zend Framework, , Zend_Form_Element_File . , - , , btw.


, , , , Zend_ProgressBar, ,

, , ( ):

$adapter = new Zend_ProgressBar_Adapter_Console();
$upload  = Zend_File_Transfer_Adapter_Http::getProgress($adapter);

$upload = null;
while (!$upload['done']) {
    $upload = Zend_File_Transfer_Adapter_Http:getProgress($upload);
}

, , -, - Ajax-.


uploadprogress :

Zend Framework, , ; -)


, , , , ... , ; - ...

, "" ; :


, ; -)

, : - ? ; -)

+12

Source: https://habr.com/ru/post/1714231/


All Articles