English 中文(简体)
• 如何增加视窗下的书名项目PHP记忆限制?
原标题:How to increase PHP memory limit for Symfony project under Windows?

我在我的当地东道方(Windows 7 Entreprise)上有一个Simonfony3项目,我使用Wamp服务器3.0.0和PHP5.6.16和Pharma 2.4.17。

当我做时:php bin/console cache:clear

I have this error : enter image description here

我也有一个记忆极限差错,每次使用孔波束(例如安装捆包)。

我修改了我的php.ini:memory_limit = 1G斯特凡服务

我仍然有这个问题。 我的项目是一个大项目,可能的话。

我发现的唯一解决办法是增加每个指挥线(-1=无限制)的记忆限制:

php -d memory_limit=-1 C:Pathofcomposer.phar require ...

In production, my project is on a Windows Server 2008 R2.

你们是否能够更好地增加我的整个项目的记忆限制? 感谢您的帮助。

问题回答

履历

@ini_set("memory_limit",-1);

页: 1

php -i|grep php.ini

找到在什么地方(php.ini),并在确定后与(phpinfo)对应。

在使用和优化你的代码之后,确定变量。

我有这个问题,或许我的案件对某人有用。

检查实验室版本,你在快速使用php-v。 接着检查网站服务器的网址,即创建网址档案

<?php
phpinfo();

并运行在你的服务器上。 如果版本不同,你必须遵循窗口上的路线:

Control Panel->System and Security->System->Advanced system settings->Environment Variables

Below System Variables table you should see Path variable. The php version mentioned in the path is used as php cli. Change the route to the php version your server is using (where you modified memory_limit). Then you have to close all your active command prompt windows for changes to be made.





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...