0

couldn’t connect to server 127.0.0.1 error in mongodb

If this problem occurred in Ubuntu, try to remove the lock and repair mongo user, then restart the service:

the problem should be resolved.

0

How to remove  from the beginning of a file in PHP

The best way to remove the special character of the beginning of a file in UTF-8 with DOM is to interpret it correctly by PHP:

3

Install redis as server in ubuntu

Step 1. download latest stable version of redis, and install it

It will install in global:

1

Php header code

PHP header codes, for reference only:

0

get millisecond & unique timestampe in php

To get millisecond:

To get unique timestampe:

0

preg_replace_callback in class

variable scope in PHP is painful. not like java or javascript, you can’t get preg_replace_callback works like this:

what you have to do is like this:

0

Manually trigger a DOM event

How to manually trigger a DOM event:

usage: