php-ini

Xdebug not as zend extension IIS7

左心房为你撑大大i 提交于 2019-12-21 01:19:10
问题 I can't get xdebug loaded as Zend extension, because the php.ini automatically puts in the wrong term. The message in phpinfo() is XDEBUG NOT LOADED AS ZEND EXTENSION I'm Using IIS 7.5 on Windows Server 2008 R2 Enterprise PHP 5.3.8 Zend Engine v2.3.0 My part of php.ini : [xdebug] zend_extension=php_xdebug-2.2.0-5.3-vc9-nts.dll xdebug.remote_enable=1 xdebug.remote_host="localhost" xdebug.remote_port=9000 xdebug.remote_handler="dbgp" No errors logged. I need to activate every extension in IIS

How can I add jpeg support to Heroku PHP buildpack

谁说胖子不能爱 提交于 2019-12-18 03:49:08
问题 I am developping an app using Heroku. I will need to manipulate images but unfortunately jpeg is not supported by default. I spoke with support and here is their answer: "We unfortunately don't support jpeg by default. But the good news is that we open sourced our PHP buildpack, so hopefully the community will be able to bring that in. In case you're interested, the buildpack is here: https://github.com/heroku/heroku-buildpack-php" I know I need to add --with-jpeg just before the --with-gd in

How can I add jpeg support to Heroku PHP buildpack

核能气质少年 提交于 2019-12-18 03:48:02
问题 I am developping an app using Heroku. I will need to manipulate images but unfortunately jpeg is not supported by default. I spoke with support and here is their answer: "We unfortunately don't support jpeg by default. But the good news is that we open sourced our PHP buildpack, so hopefully the community will be able to bring that in. In case you're interested, the buildpack is here: https://github.com/heroku/heroku-buildpack-php" I know I need to add --with-jpeg just before the --with-gd in

Increase max execution time for php

自古美人都是妖i 提交于 2019-12-17 04:41:12
问题 I have added set_time_limit(0); function to increase execution time but its executing only 2-3 minutes maximum. error_reporting(E_ALL); error_reporting(1); set_time_limit(0); I want to search links from a site wich taking a long lime . Any help would be greatly appreciated. Thanks a lot. 回答1: PHP file (for example, my_lengthy_script.php) ini_set('max_execution_time', 300); //300 seconds = 5 minutes .htaccess file <IfModule mod_php5.c> php_value max_execution_time 300 </IfModule> More

How to set .ini file in the server?

此生再无相见时 提交于 2019-12-13 11:17:31
问题 For My PDF Generation I am using MPDF. But its not working in client's server. It shows no problem in my local system and my server. So I tried to change the max_execution_time, max_input_time, memory_limit in the ini file. But its not changing. When I used .htaccess it showed " For security reasons, mod_php is not used on this server. Use a php.ini file for php directives".. I tried ini_set(), .user.ini file, php.ini file options. Is there any other way I can change the ini settings on the

How update php.ini on a Mac OS X Mojave?

百般思念 提交于 2019-12-13 00:39:07
问题 I'm on Mac OS X Mojave Step 1 I ran php -i | grep php.ini I got Configuration File (php.ini) Path => /usr/local/php5/lib Loaded Configuration File => /usr/local/php5/lib/php.ini Step 2 I open up the ini file vi /usr/local/php5/lib/php.ini , and update memory_limit to -1 Step 3 I ran php -i | grep memory_limit I got memory_limit => 256M => 256M Step 4 I restart my sudo apachectl -k restart and type in my password and tried php -i | grep memory_limit again, I still got memory_limit => 256M =>

Yii: any way to save the images in compressed form?

断了今生、忘了曾经 提交于 2019-12-12 18:21:57
问题 I have images having huge size, I want to compress them before they save in database. Here is my controller, is there any way to do this without any extension? public function actionCreate() { $model = new Business; if (isset($_POST['Business'])) { $rnd = rand(0, 9999); $model->attributes = $_POST['Business']; $uploadedFile = CUploadedFile::getInstance($model, 'image'); $fileName = "{$rnd}-{$uploadedFile}"; $model->image = $fileName; if ($model->save()) { $uploadedFile->saveAs(Yii::app()-

dll in php “the specified module could not be found”

走远了吗. 提交于 2019-12-12 10:43:58
问题 I am having trouble with PHP extensions. I am trying to run a script and nothing happens then I checked my error log and here is what I got: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_oci8.dll' - The specified module could not be found. in Unknown on line 0 same goes for following files: php_oci8_11g.dll php_pdo_oci.dll php_sybase_ct.dll php_com_dotnet.dll every file except php_com_dotnet.dll was installed with PHP installation, all the files are enabled

Allowed memory size of 134217728 bytes exhausted (tried to allocate 31989760 bytes) In a do…while loop

≡放荡痞女 提交于 2019-12-11 23:55:22
问题 I have a do while code that reaches to an API to get data from AWS Elastic search. When I increase size, I get memory error. Now I have reduced size to 20, but want to loop through the results as a cronjob yet, it fails. I have increased memory to 4096 yet, it fails I have increased memory limit in my .ini file, yet it fails. Since its a cronjob, I have no idea how to use scroll. do { $transporter = new TransporterController; $response = $transporter->dispatchSearch($paper->title, '55%',

what is root cause of 'child pid 10708 exit signal Segmentation fault (11)' error?

爷,独闯天下 提交于 2019-12-11 12:16:59
问题 I am getting more and more child pid 10708 exit signal Segmentation fault (11) errors. what is the root cause of it and how to fix it ? Is php ini memory is associated with this? I am using apache2 server with php. Thanks in advance. 回答1: It is entirely possible that your memory_limit variable in your php.ini may cause this problem. It certainly did in my case. By lowering the memory_limit , I was able to resolve these errors. 回答2: The root cause is generally that the code is doing something