php-ini

PhpMyAdmin install errors

这一生的挚爱 提交于 2019-12-01 06:04:49
问题 I've just installed phpmyadmin on Linux Fedora 13 with PHP 5.3.3. I get the following 2 errors: First: I get this on the login screen: Cannot load mcrypt extension. Please check your PHP configuration. -The solutions I googled for this one was to yum install mcrypt and enable it in /etc/php.ini with extension=php_mcrypt.dll extension=php_mcrypt_filter.dll Did all that, but no go. This second one shows up when I login: The mbstring PHP extension was not found and you seem to be using a

ini_set('memory_limit', …) doesn't work and returns false; can't figure out why

旧巷老猫 提交于 2019-11-30 20:39:46
ini_set('memory_limit', '128M'); // Returns false; memory_limit unchanged I wasn't able to find a list of things that can cause this. So far I checked: Safe mode: disabled disable_functions: Empty php_admin_value: None that I could find (is there a way to know for sure?) I ran out of ideas! ini_set works correctly with other parameters (such as "display_errors") James C If it's not the PHP version problem posted already try checking that there's nothing on the machine preventing your from raising this limit. How to check whether Suhosin is installed? edit (after establishing that Suhosin is

phpunit require_once() error

戏子无情 提交于 2019-11-30 10:21:38
问题 I recently installed phpunit on my server via the pear installer. When I go to run a test I get the following error: PHP Warning: require_once(PHPUnit/Util/Filter.php): failed to open stream: No such file or directory in /usr/bin/phpunit on line 44 PHP Fatal error: require_once(): Failed opening required 'PHPUnit/Util/Filter.php' (include_path='.:/usr/bin/php') in /usr/bin/phpunit on line 44 After doing some searching, I tried making some modifications to the include_path in my php.ini file

ini_set('memory_limit', …) doesn't work and returns false; can't figure out why

≡放荡痞女 提交于 2019-11-30 05:17:37
问题 ini_set('memory_limit', '128M'); // Returns false; memory_limit unchanged I wasn't able to find a list of things that can cause this. So far I checked: Safe mode: disabled disable_functions: Empty php_admin_value: None that I could find (is there a way to know for sure?) I ran out of ideas! ini_set works correctly with other parameters (such as "display_errors") 回答1: If it's not the PHP version problem posted already try checking that there's nothing on the machine preventing your from

phpunit require_once() error

纵然是瞬间 提交于 2019-11-29 20:05:45
I recently installed phpunit on my server via the pear installer. When I go to run a test I get the following error: PHP Warning: require_once(PHPUnit/Util/Filter.php): failed to open stream: No such file or directory in /usr/bin/phpunit on line 44 PHP Fatal error: require_once(): Failed opening required 'PHPUnit/Util/Filter.php' (include_path='.:/usr/bin/php') in /usr/bin/phpunit on line 44 After doing some searching, I tried making some modifications to the include_path in my php.ini file on the server. But that hasn't done a thing. Any idea what might be causing this? UPDATE: As of 2013

Enable opcache for php in wamp

本秂侑毒 提交于 2019-11-29 08:20:08
问题 I try to enable opcache on wamp but it doesnt work. I changed the settings like this : [opcache] zend_extension=C:/wamp/bin/php/php5.5.12/ext/php_opcache.dll opcache.enable=1 opcache.enable_cli=1 opcache.memory_consumption=128 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=4000 I always have the red exclamation mark in the extension of php for opcache whats wrong? some help pls And it is in the the phpinfo() Zend OPcache Opcode Caching Up and Running Optimization Enabled

How can I add jpeg support to Heroku PHP buildpack

﹥>﹥吖頭↗ 提交于 2019-11-29 02:45:56
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 the ./configure of PHP But the buildpack only gives the ability to update the php.ini and compile

PhpStorm $_POST always empty

痞子三分冷 提交于 2019-11-28 13:27:29
$_POST seems that does not work. I've installed PhpStorm 10.0.3, and using the WAMP server default php interpreter. in the index.php: <form method='post' action='a.php'> <input type='text' name='user_f'> <input type='submit' name='send' value='Send'> </form> In the a.php: var_dump($GLOBALS); when I type "asdf" in the form: array (size=9) 'HTTP_RAW_POST_DATA' => string 'user_f=asdf&send=Send' (length=22) '_GET' => array (size=0) empty '_POST' => array (size=0) empty '_COOKIE' => array (size=0) empty '_FILES' => array (size=0) empty '_ENV' => array (size=0) empty '_REQUEST' => array (size=0) $

what are the alternatives for php://input and $HTTP_RAW_POST_DATA when file_get_contents and always_populate_raw_post_data are disabled

我的梦境 提交于 2019-11-28 12:39:02
My hosting comp has disabled all the socket functionality except curl. They are so irresponsible on my questions for enabling it. i can think of another hosting yet i want to know the following. I have asked a question related to this and this is a continuation yet another question. I am unable to use file_get_contents('php://input') and always_populate_raw_post_data is disabled in php.ini so i cannot use $HTTP_RAW_POST_DATA. So what is or are the alternatives to get a raw post data. For example i have setup notifications callback url with facebook. so when ever there is an event then facebook

Change PHP version on server using either .htaccess or php.ini

混江龙づ霸主 提交于 2019-11-28 09:58:45
How can I change the PHP version to 5.2 on a server using either an .htaccess of php.ini file? Adding AddHandler application/x-httpd-php52 .php .php5 .php4 .php3 to your .htaccess might work. I take it you want to process e.g. .php3 files with php 3.x. You can't switch between php versions like this, but you might be able to do it by setting up a proxy server that distributes the query to one of several servers (one for each PHP version). There might also be some apache hack that works by calling the cgi-bin mode php in FastCGI mode. See the linked answer for this. According to https://www