This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
read -p 'PHP version(5.6): ' input | |
if [ "$input" = "7.2" ] | |
then | |
echo 'Switching to PHP version 7.2' | |
sudo a2dismod php5.6 | |
sudo a2enmod php7.2 | |
sudo service apache2 restart | |
sudo update-alternatives --set php /usr/bin/php7.2 | |
sudo update-alternatives --set phar /usr/bin/phar7.2 | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
read -p 'PHP version(5.6): ' input | |
if [ "$input" = "7.2" ] | |
then | |
echo 'Switching to PHP version 7.2' | |
sudo a2dismod php5.6 | |
sudo a2enmod php7.2 | |
sudo service apache2 restart | |
sudo update-alternatives --set php /usr/bin/php7.2 | |
sudo update-alternatives --set phar /usr/bin/phar7.2 | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
<IfModule mod_negotiation.c> | |
Options -MultiViews | |
</IfModule> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} -d [OR] | |
RewriteCond %{REQUEST_FILENAME} -f | |
RewriteRule ^ ^$1 [N] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class BanglaConverter { | |
public static $bn = array("১", "২", "৩", "৪", "৫", "৬", "৭", "৮", "৯", "০"); | |
public static $en = array("1", "2", "3", "4", "5", "6", "7", "8", "9", "0"); | |
public static function bn2en($number) { | |
return str_replace(self::$bn, self::$en, $number); | |
} | |
public static function en2bn($number) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$targetFolder = $_SERVER['DOCUMENT_ROOT'].'/storage/app/public'; | |
$linkFolder = $_SERVER['DOCUMENT_ROOT'].'/public/storage'; | |
symlink($targetFolder,$linkFolder); | |
echo 'Symlink process successfully completed'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(navigator.userAgent.match(/MSIE 10/i) || | |
navigator.userAgent.match(/Trident\/7\./) || | |
navigator.userAgent.match(/Edge\/12\./)) { | |
$('body').on("mousewheel", function () { | |
event.preventDefault(); | |
var wd = event.wheelDelta; | |
var csp = window.pageYOffset; | |
window.scrollTo(0, csp - wd); | |
}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Route::get('artisan/command/{key?}', array(function($key = null) | |
{ | |
Artisan::call('config:clear'); | |
if($key == "cache-clear") | |
{ | |
try | |
{ | |
echo '<br>php artisan cache:clear...'; | |
Artisan::call('cache:clear'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="col-sm-3"> | |
<select class="form-control"> | |
<option>Choose One</option> | |
<option value="Akkelpur">Akkelpur</option> | |
<option value="Joypurhat Sadar">Joypurhat Sadar</option> | |
<option value="Kalai">Kalai</option> | |
<option value="Khetlal">Khetlal</option> | |
<option value="Panchbibi">Panchbibi</option> | |
<option value="Adamdighi">Adamdighi</option> | |
<option value="Bogra Sadar">Bogra Sadar</option> |