Thursday, July 19, 2018

Regular Expression to find Tag with with attributes or content

<[^<>]*>Gill Sans</[^<>]*>

<[^<>]*"Gill Sans"[^<>]*>[^<>]*</[^<>]*> 



  1. First expression: to find 'Gill Sans' within a tag
  2. 'Gill Sans' remaining as an attribute on the tag

Monday, July 9, 2018

Increase upload file size : Nginx, PHP on Ubuntu

In /etc/nginx/sites-available


server {
     client_max_body_size 128m;



location ~ \.php$ {
         fastcgi_param PHP_VALUE "upload_max_filesize=128M \n post_max_size=128M";
}


When i used to publish WordPress site on VPS server. In the WordPress Back end Limit to 2MB uploading. After checking several methods, above option was success.  

  To configure Nginx for a Laravel application located within a subfolder, a  location  block is required to handle requests to that specifi...