Creating a new PHPExcel Object.
$this->PHPExcel = new PHPExcel();
Creating a new sheet:
| sudo add-apt-repository ppa:ondrej/php -y | |
| sudo apt-get update -y | |
| sudo apt-get install php7.0-curl php7.0-cli php7.0-dev php7.0-gd php7.0-intl php7.0-mcrypt php7.0-json php7.0-mysql php7.0-opcache php7.0-bcmath php7.0-mbstring php7.0-soap php7.0-xml php7.0-zip -y | |
| sudo mv /etc/apache2/envvars /etc/apache2/envvars.bak | |
| sudo apt-get remove libapache2-mod-php5 -y | |
| sudo apt-get install libapache2-mod-php7.0 -y | |
| sudo cp /etc/apache2/envvars.bak /etc/apache2/envvars |
| # Install phpbrew | |
| sudo apt-get update | |
| sudo apt-get install libmcrypt-dev | |
| curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew | |
| chmod +x phpbrew | |
| sudo mv phpbrew /usr/local/bin/ | |
| phpbrew init | |
| [[ -e ~/.phpbrew/bashrc ]] && source ~/.phpbrew/bashrc |
| add_filter( 'woocommerce_order_number', 'webendev_woocommerce_order_number', 1, 2 ); | |
| /** | |
| * Add Prefix to WooCommerce Order Number | |
| * | |
| */ | |
| function webendev_woocommerce_order_number( $oldnumber, $order ) { | |
| return 'WE' . $order->id; | |
| } |
| <?php | |
| use Doctrine\ORM\Mapping as ORM; | |
| use Doctrine\Common\Collections\ArrayCollection; | |
| /** | |
| * @ORM\Entity() | |
| * @ORM\Table(name="user") | |
| */ | |
| class User |
| <?php | |
| // server | |
| class MySoapServer | |
| { | |
| public function getMessage() | |
| { | |
| return 'Hello,World!'; | |
| } | |
Do a "git export" (like "svn export")?
git archive --format zip --output /full/path/to/zipfile.zip master Bundle includes git history
| #user nobody; | |
| #Defines which Linux system user will own and run the Nginx server | |
| worker_processes 1; | |
| #Referes to single threaded process. Generally set to be equal to the number of CPUs or cores. | |
| #error_log logs/error.log; #error_log logs/error.log notice; | |
| #Specifies the file where server logs. |
| # Install linux update, followed by GCC and Make | |
| sudo yum -y update | |
| sudo yum install -y gcc make | |
| # Install Nginx and PHP-FPM | |
| sudo yum install -y nginx php-fpm | |
| # Install PHP extensions | |
| sudo yum install -y php-devel php-mysql php-pdo \ | |
| php-pear php-mbstring php-cli php-odbc \ |