Many time you have face a problem in windows wampserver or virtualhost of index.php file overwrite. i also fetch that problem like:
In this url you can see index.php wtite in url, but URL must be without index.php. so if you are using windows wampserver then you can easily solve out this problem by folowing step:
<strong>1. Open File : </strong>C:\wamp\bin\apache\Apache2.4.4\conf\httpd.conf
<strong>2. Find : </strong> #LoadModule rewrite_module modules/mod_rewrite.so and
Then, Just Change, Only remove ‘#’ sign.
#LoadModule rewrite_module mo.....
If you are working with laravel and you need to setup gmail configration for send email. if you want to set configration of gmail then first go to mail.php file, you are work on laravel 4 and laravel 5 its not issue, because you can set comman setting for both version of laravel framwork.
'driver' => smtp,
'host' => smtp.gmail.com,
'port' => 587,
'from' => ['address' => 'email@example.com', 'name' => 'Test'],
'encryption' => tls,
'username' => firstname.lastname@example.org,
'password' => test123,
'sendmail' => '/usr/sbin/sendm.....
If you want to set vertical align middle text, image, div etc then you can set easily by using following example. you can give vertical align middle by saveral way. i also give you example with output. you use any of the example of vertical align middle by css. I also provide saveral example with difference css so you can easily find your solution.
In this example you can set vertical align middle using display:table and display:table-cell property of css.
<div style="width: 500px;background:green;height: 150px;border:1px solid red;display: table;"class="outter">
If you are working on PHP or other PHP framework and you want to create array of another array value. now you can see on following example how can you make array form another multidimensional array key's.
For example you have array like:
$multi = array(
['1'] => array('id'=>1,'name'=>'hardik'),
['2'] => array('id'=>1,'name'=>'vimal'),
['3'] => array('id'=>1,'name'=>'harshad'),
but if you want to this multi-dimensional array just like this way:
$test = array('hardik','vimal','harshad');
so, we can make t.....
you want to merge two array but without overwrite value then you can see how to merge two array in following example.you have two array and you want to merge with overwrite with key then you fetch many problem. like this two array :
$array1 = [
$array2 = [
AND You want.....