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
service: test-func | |
useDotenv: true | |
provider: | |
name: aws | |
region: us-east-1 | |
runtime: provided.al2 | |
stage: ${opt:stage, 'dev'} | |
environment: | |
APP_ENV: production |
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
[ | |
{ | |
"upazila": "Amtali Upazila", | |
"district": "Barguna", | |
"division": "Barisal" | |
}, | |
{ | |
"upazila": "Bamna Upazila", | |
"district": "Barguna", | |
"division": "Barisal" |
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
// Function to get the client ip address | |
function get_client_ip() { | |
$ipaddress = ''; | |
if ($_SERVER['HTTP_CLIENT_IP']) | |
$ipaddress = $_SERVER['HTTP_CLIENT_IP']; | |
else if($_SERVER['HTTP_X_FORWARDED_FOR']) | |
$ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR']; | |
else if($_SERVER['HTTP_X_FORWARDED']) | |
$ipaddress = $_SERVER['HTTP_X_FORWARDED']; | |
else if($_SERVER['HTTP_FORWARDED_FOR']) |
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 | |
require('fpdf.php'); | |
class DoubleSided_PDF extends FPDF | |
{ | |
var $doubleSided; // layout like books? | |
var $outerMargin; | |
var $innerMargin; | |
var $xDelta; // if double-sided, difference between outer and inner |