Regular expression for validating 10 digit mobile number. provide code down below

1.Validation expression =”^[0-9]{10}”
[0-9] – it will take only 0 to 9 digits
{10} – means it takes exactly 10 digits..
Example:9023123331

2.Validation expression =”^[8-9]{10}”
[8-9] – it will take only 8 to 9 digits
{10} – means it takes exactly 10 digits..
Example:8923123331

Change file upload size in linux server

You can change it an .htaccess file.

.htaccess files are stored in the same directory as your .php files are. They modify configuration for that folder and all sub-folders. You simply use them by creating an .htaccess file in the directory of your choice (or modify it if present).

The following should enable you to increase your upload limit (if the server provider allows PHP config changes via .htaccess).

 

php_value upload_max_filesize 70M
php_value post_max_size 80M
php_value memory_limit 90M
php_value max_execution_time 240
php_value max_input_time 240