php-ini

CodeIgniter Fatal error: Allowed memory size of bytes exhausted

懵懂的女人 提交于 2019-12-06 14:53:04
I'm getting this Fatal Error Message in my codeIgniter, I've already tried some answers which has the same question. I've already set my php.ini max_execution_time = 300 max_input_time = 600 memory_limit = 128M But still I'm getting the same Fatal error message, I don't know if the problem is in my code or in php settings. Here are some my of codes in controller: public function blog(){ $this->load->model("blog_model"); $data["title"] = "CodeIgniter Projects - Blog"; if($this->getLastUrl() == 'blog'){ $data["result"] = $this->blog_model->getBlogs(); $this->load->view("view_blog", $data); }else

What are the “serious performance implications” of implicit_flush?

僤鯓⒐⒋嵵緔 提交于 2019-12-05 09:51:55
My site's admin section has a bunch of very slow report-generating scripts that echo output line by line as it is generated. To have this output flushed immediately to the browser, instead of the user having to wait for minutes before they see any response, we have output_buffering disabled and we call ob_implicit_flush at the beginning of such scripts. For convenience, I was considering just turning on the implicit_flush setting in php.ini instead of adding ob_implicit_flush() calls to every script that would benefit from it. However, the documentation contains the following scary but

PHP Sql Server PDOException:could not find driver

旧街凉风 提交于 2019-12-05 05:31:41
My server is a Windows 2008 server. PHP Version 7.2.7 is installed and running. Sql Server 11 (64 bit) is installed and is working (there is a couple asp.net apps running and already using that database) I downloaded the PHP Sql Server Drivers from Microsofts website and placed the .dll files in the PHP ext directory. In my PHP.ini I added: extension=php_pdo_sqlsrv_7_nts_x64 In my .php file I am using to test my db connection I have: $SqlServer = "THISSERVER\SQLEXPRESS"; $SqlServerCon = new PDO("sqlsrv:server=$SqlServer;Database=TheDatabase", "DbUName", "DbPassword"); if (!$SqlServerCon) {die(

php 7 unable to initialize sqlsrv

孤街浪徒 提交于 2019-12-05 03:57:00
I searched all day to find out a solution for sqlsrv dll on php 7 VC14 x64 Thread Safe and i did not found a solution. Does anyone solved this issue : [04-Oct-2015 19:48:05 UTC] PHP Warning: PHP Startup: pdo_sqlsrv: Unable to initialize module Module compiled with module API=20131226 PHP compiled with module API=20141001 These options need to match in Unknown on line 0 Here is my php7 RC4 informations : System Windows NT 6.0 build 6002 (Windows Server 2008 Standard Edition Service Pack 2) AMD64 Build Date Sep 29 2015 17:15:28 Compiler MSVC14 (Visual C++ 2015) Architecture x64 sqlsrv isn't

How to set and use PHP_INI_SCAN_DIR environment variable in PHP? [duplicate]

自作多情 提交于 2019-12-04 17:28:47
This question already has answers here : Is it mandatory to configure PHP in order to scan configuration INI files on a per-directory basis(i.e. .htaccess files in my case) by PHP? (1 answer) How do I include a php.ini file in another php.ini file? (7 answers) how to set environment variables in apache xampp ? (1 answer) Closed last year . I've installed PHP 7.2.3 on my machine running on Windows 10 . I've installed PHP and Apache httpd 4.29 using latest copy of XAMPP package . I come across following text from the PHP Manual It is possible to configure PHP to scan for .ini files in a

PHP 5.3: “Declaration of … should be compatible with that of …” error

孤者浪人 提交于 2019-12-04 03:51:40
After having upgraded to PHP 5.3, my application was inundated with "Declaration of ... should be compatible with that of ..." style errors. I understand the nature of these errors, but I wish to disable them. The error_reporting setting in php.ini is "E_ALL & ~(E_NOTICE | E_DEPRECATED)" , but this error continues to show up. I assumed it was included in E_STRICT , but am I wrong? It's an E_STRICT error. Change your php.ini setting to E_ALL & ~(E_NOTICE | E_DEPRECATED | E_STRICT) ... But it should be turned off by default (it's not included in E_ALL ). So if you're getting them, that means it

can't update php.ini file in Docker container

余生颓废 提交于 2019-12-03 08:29:48
问题 I'm trying to set Magento2 on Docker with Nginx & PHP7. I've added a custom php.ini file as recommended by the PHP7 Docker image. I can see from phpinfo.php that it's loading my php.ini file but none of my updates are there. It should be: memory_limit = 2G max_execution_time = 800 I've checked the PHP container and I can see the php.ini file is there with the correct settings, or so I think? $ docker exec -it mymagento2docker_php_1 /bin/bash # cat /usr/local/etc/php/php.ini ; This file is

can't update php.ini file in Docker container

走远了吗. 提交于 2019-12-03 01:26:33
I'm trying to set Magento2 on Docker with Nginx & PHP7. I've added a custom php.ini file as recommended by the PHP7 Docker image . I can see from phpinfo.php that it's loading my php.ini file but none of my updates are there. It should be: memory_limit = 2G max_execution_time = 800 I've checked the PHP container and I can see the php.ini file is there with the correct settings, or so I think? $ docker exec -it mymagento2docker_php_1 /bin/bash # cat /usr/local/etc/php/php.ini ; This file is created automatically by the docker build memory_limit = 2G max_execution_time = 800 What am I doing

Config php ini file for upload files

懵懂的女人 提交于 2019-12-01 11:15:14
I have a page for upload files, In .htaccess file I have this: php_value upload_max_filesize 40M php_value post_max_size 40M I have an img, with size 1.6 MB. When I am trying to upload this image, I obtain the error below. Fatal error: Allowed memory size of 54525952 bytes exhausted (tried to allocate 3600 bytes) in.... Does anyone know how to solve this problem? if you can cant access php.ini on server then write below in your .htaccess file php_value upload_max_filesize 10M php_value post_max_size 20M php_value memory_limit 32M You need to set following values to increase file upload size

Config php ini file for upload files

南笙酒味 提交于 2019-12-01 08:39:16
问题 I have a page for upload files, In .htaccess file I have this: php_value upload_max_filesize 40M php_value post_max_size 40M I have an img, with size 1.6 MB. When I am trying to upload this image, I obtain the error below. Fatal error: Allowed memory size of 54525952 bytes exhausted (tried to allocate 3600 bytes) in.... Does anyone know how to solve this problem? 回答1: if you can cant access php.ini on server then write below in your .htaccess file php_value upload_max_filesize 10M php_value