Increase memory limit

前端 未结 4 824
一生所求
一生所求 2021-01-22 08:45

My php script creates PDF on fly, the data comes from mysql db table it works fine till 30 records but more than that it says

I am dompdf from http://code.google.com/p/

4条回答
  •  清歌不尽
    2021-01-22 09:10

    go through below code. update code and comment as per your requirement

    System Configuration';
        echo '
    '; //PHP SETUP: all time in seconds //ini_set('max_execution_time', 18000); // set your max execution time that you require for current script //ini_set('memory_limit',' 2048M'); // set memory limit that you require for current script //ini_set("max_input_time", '5000'); //ini_set('default_socket_timeout', '5000'); //@set_time_limit(0); //DATABASE SETUP: all time in seconds //ini_set('mysql.connect_timeout', '5000'); $ini_path = php_ini_loaded_file(); $ini_max_time = ini_get('max_execution_time'); $ini_memory = ini_get('memory_limit'); ?>
    Current Server








提交回复
热议问题