Posts

Showing posts from September, 2019

Correct timing to take water will maximize its effectiveness to Human body

Correct timing to take water will maximize its effectiveness to Human body. Two (02) glasses of water - After waking up - Help activate internal organs One (01) glass of water - 30 minutes before meal - Helps digestion One (01) glass of water - Before taking a bath - Helps lower blood pressure One (01) glass of water - Before sleep - Avoids stroke or heart attack

Show Rupee Symbol for coders PHP Bootstrap .NET

<!DOCTYPE html>    <html>    <head>    <title>Font Awesome Icons</title>    <meta name="viewport" content="width=device-width, initial-scale=1">    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">    </head>    <body>    <h1>fa fa-rupee</h1>    <i class="fa fa-rupee"></i>    <i class="fa fa-rupee" style="font-size:24px"></i>    <i class="fa fa-rupee" style="font-size:36px"></i>    <i class="fa fa-rupee" style="font-size:48px;color:red"></i>    <br>    <p>Used on a button:</p>    <button style="font-size:24px">Button <i class="fa fa-rupee"></i></button>    <p>Unicode: &#x20B9 </p>    <i style="font-

Date Time Formatting in PHP

echo  date_format ( $date ,  'Y-m-d H:i:s' ); #output: 2012-03-24 17:45:12 echo  date_format ( $date ,  'd/m/Y H:i:s' ); #output: 24/03/2012 17:45:12 echo  date_format ( $date ,  'd/m/y' ); #output: 24/03/12 echo  date_format ( $date ,  'g:i A' ); #output: 5:45 PM echo  date_format ( $date ,  'G:ia' ); #output: 05:45pm echo  date_format ( $date ,  'g:ia \o\n l jS F Y' ); #output: 5:45pm on Saturday 24th March 2012

Create POST requests with PHP Headers

Create POST requests with PHP Headers If for some reason you need to create a POST request using PHP headers, this is the way to go: 1 2 3 4 5 6 7 8 9 10 11 12 13 //The domain of your website $host = 'www.yoursite.com' ; //The path you want to send the request to: (www.yoursite.com/user/add) $path = "/user/add" ; //Encode the POST params you want to send $data = urlencode( "username=John&surname=smith&phone=0856474633" );   header( "POST $path HTTP/1.1\r\n" ); header( "Host: $host\r\n" ); header( "Content-type: application/x-www-form-urlencoded; charset=UTF-8\r\n" ); header( "Content-length: " . strlen ( $data ) . "\r\n" ); header( "Connection: close\r\n\r\n" ); header( $data );