Posts

api call in php

  <! DOCTYPE   html > < html   lang = "en" > < head >      < meta   charset = "UTF-8" >      < meta   http-equiv = "X-UA-Compatible"   content = "IE=edge" >      < meta   name = "viewport"   content = "width=device-width, initial-scale=1.0" >      < title > Document </ title >      <!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script> -->      < script   src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js" ></ script >      <!-- CSS only -->      < link   href = "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css"   rel = "stylesheet"       ...

user in rest flag api

      <! DOCTYPE   html >     < html   lang = "en" >     < head >         < meta   charset = "UTF-8" >         < meta   http-equiv = "X-UA-Compatible"   content = "IE=edge" >         < meta   name = "viewport"   content = "width=device-width, initial-scale=1.0" >         < title > Document </ title >         <!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script> -->         < script   src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js" ></ script >         <!-- CSS only -->  ...

fizzbuzz.php

  <?php      for  ( $i = 1 ;  $i <= 100  ;  $i ++) {          if ( $i  %  3  ==  0  &&  $i  %  5  == 0 ){             echo   "Fizzbuzz<br>" ;        }         elseif ( $i  %  3  ==  0 ){             echo   "fizz<br>" ;        }         elseif ( $i  %  5  ==  0 ){             echo   "buzz<br>" ;        }         else {            echo   $i . "<b...

pattern.php

 https://programmingwithvishal.com/demo/pattern/ <?php //output // 1 // 22 // 333 // 4444 // 55555     //    for($i = 1;$i<=5;$i++) //     { //         for ($j=0; $j < $i; $j++) {  //             echo $i; //         } //         echo"<br>";          //     } //output // $$$$$ // $$$$ // $$$ // $$ // $ // for($i=5;$i>=1;$i--) // { //     for($j=1;$j<=$i;$j++) //     { //         echo"$"; //     } //   ...

dompdf_index.php

  <?php require_once   'dompdf/autoload.inc.php' ;  use  Dompdf\ FrameDecorator ; use  Dompdf\ Dompdf ; use  Dompdf\ Frame ; // use Dompdf\Dompdf; // Reference the Options namespace  // use Dompdf\Options;  define  ( "DOMPDF_DEFAULT_PAPER_SIZE" ,  "letter" ); $dompdf  =  new   Dompdf ();  // Load HTML content  $dompdf -> loadHtml ( file_get_contents ( 'breeder_certificate.html' )); // $html = file_get_contents("pdf_show.html");  // $dompdf->loadHtml($html); $dompdf -> set_paper ( array ( 0 ,  0 ,  595 ,  841 ),  'portrait' ); // $dompdf->setPaper('A4', 'landscape');  // $customPaper = array(0,0,360,360); // Render the HTML as PDF  $dompdf -> render ();  $output  =  $dompdf -> output (); file_put_contents ( 'breeder-certi...

pdf_show

  < html >      < head >          < style >              @page  {                  size : A4;                  margin :  0 ;             }              html ,              body  { /*                width: 210mm;                 height: 297mm;*/              ...