Skip to content

OSX composer increase memory limit

I am having memory issues with composer; trying to increase the available amount above 128MO. I have been following the guidelines from composer.org but nothing seems to work. If I locate php.ini on my machine I get: I sudo /private/etc/php.ini.default and change MEMORY_LIMIT = 512MO but when I do php -r &#82…

double data on mysql

I use the php operator && to select multiple data so that there is no duplication on mysql. Does the code that I use below run fine? Is there a more simple use of PHP operators? Answer Upgrade to mysqli, I’ll recommend object-oriented syntax because it is nicer to work with. In accordance with t…

Yii2 Migration move data to other table

I have table: and I have created table I want to move some data(date_used & used_by_user_id) from table ticket to other table used with migration yii2 in the query. But I don’t know how to do it without ActiveRecord & array. Answer Only sql. Yii-migration not supported select in the insert into