Skip to content

Instantly share code, notes, and snippets.

View liverbool's full-sized avatar

Ishmael Dos liverbool

  • Earth
View GitHub Profile
http://askubuntu.com/questions/14763/where-are-the-apache-and-php-log-files
Check this settings in PHP.INI:
error_reporting = E_ALL | E_STRICT (as recommended for development in php.ini)
error_log = /var/log/php_errors.log
Then create log file manually
touch /var/log/php_errors.log
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
@liverbool
liverbool / doctrine.function.convert.using.php
Last active December 21, 2015 18:09
MySql Convert Charset: CONVERT(... USING ...) for Doctrine 2
<?php
namespace Entities\meta\Functions;
use Doctrine\ORM\Query\Lexer;
use Doctrine\ORM\Query\AST\Functions\FunctionNode;
/**
* "CONVERT" "(" ArithmeticPrimary AliasResultVariable AliasResultVariable ")".
* More info:
* http://dev.mysql.com/doc/refman/5.0/en/cast-functions.html#function_convert
var fs = require("fs");
var dir = __dirname+"/functions";
/**
* Build packages by you want.
* Added by ツ Liverbool
*
* List of packages
* @see https://github.com/kvz/phpjs/tree/master/functions