[SPIP] PUBLISHED : _INC_DISTANT_MAX_SIZE

SPIP

Article validated

The article « _INC_DISTANT_MAX_SIZE
(https://www.spip.net/en_article6755.html) » was validated by George.


_INC_DISTANT_MAX_SIZE

Saturday 24 September 2022 , by jack

The constant _INC_DISTANT_MAX_SIZE defines the maximum size of a
remote file retrieved by the recuperer_page() function. By default, this
constant is set to 2 MB.

It is possible to customize the value of the constant
_INC_DISTANT_MAX_SIZE in your file config/mes_options.php (see The
mes_options.php file
(https://www.spip.net/ecrire/?exec=article&id_article=4909)).

Example :

// allow the retrieval and processing


// of files up to 3 Mb away


define

 (http://www.php.net/define)

(


'_INC_DISTANT_MAX_SIZE'


,


3


*


1048576


)


;

— Sent by SPIP (https://www.spip.net/)

rubon199-7e493.jpg