how to view amazon prime videos in android smart TV

Here is the steps to view amazon prime videos in android smart TV

1) Install amazon prime App in your Android smart phone

install amazon prime videos in android smart TV

2) Install Chromecast app in your Android smart phone ( http://play.google.com/store/apps/details?id=de.twokit.castbrowser&hl=en_IN)

install and view amazon prime videos in android smart TV

3) Connect both your android smart TV and android smart phone to the same WiFi

4) Open any video program in amazon prime videos you wish to watch in your android smart TV

4) click on Chromecast icon that appearing in amazon prime videos to watch the same prime videos in android smart TV
Chromecast install and view amazon prime videos in android smart TV

See it is connecting

WhatsApp Image 2020-04-27 at 3.43.02 PM (1)

WhatsApp Image 2020-04-27 at 3.47.45 PM

PHP curl request code with Content Type application/json in header

Here is the PHP curl request code with Content Type application/json in header

$url = '' ; 
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");                                                                     
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$data_string);
 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json' )); 
          
$server_output = curl_exec($ch);
if(curl_exec($ch) === false)
{
    echo 'Curl error: ' . curl_error($ch);
}
else
{
    //echo 'Operation completed without any errors';
}

Simple PHP code to upload a file (pdf , doc,docx)

Here is the simple php code to upload a pdf file

/* file upload */

 $allowedExts = array("pdf", "doc", "docx"); 
 $targetfolder = $resume_upload_path; // UPLOAD path e.g '/home/public_html/upload'
 $random_num=rand(1000,9999);
$targetfolder = $targetfolder . $random_num.str_replace(' ', '_', basename($_FILES['resume_pdf']['name'])) ;
$targetpath = $root_upload_path . $random_num.str_replace(' ', '_', basename($_FILES['resume_pdf']['name'])) ;

$file_type=$_FILES['resume_pdf']['type'];
$extension = end(explode(".", $_FILES["resume_pdf"]["name"]));


 if ( 12000 < $_FILES["resume_pdf"]["size"]  ) {
 echo "error";  
 exit;
 }

 if ( ! ( in_array($extension, $allowedExts ) ) ) {

  echo "error";  
    exit;
  
 }
 $file_path="";
 if(move_uploaded_file($_FILES['resume_pdf']['tmp_name'], $targetfolder))

 {

 $file_path=$targetpath ;

  }

 else {


  echo "error";  
    exit;
 

 }
 
/* file upload end*/

where $file_path is the path of uploaded file