Category : php

i used this link https://stackoverflow.com/a/65890498/14913109 now i am able to button on click download database backup and i have installed google file system in my application but on click i want to upload that backup on gdrive only i want to copy file and then i want to put in Storage::disk(‘google’)->put($myfile); so i tried this ..

Read more

I want to update a column of test.xlsx file from testinput.xlsx file when names are equal. I have these test.xlsx testinput.xlsx I want this testnew.xlsx this is my php code but i am really confused, i think i am lost in iterating and problem with the $writer->addRow($row); <?php require_once ‘spout/src/Spout/Autoloader/autoload.php’; use BoxSpoutReaderCommonCreatorReaderEntityFactory; use BoxSpoutWriterCommonCreatorWriterEntityFactory; $existingFilePath ..

Read more

1.) Is it possible to use CSS and modify default html5 video player, when sending mp4 from PHP script? I call link to video from HTML … <a href="play.php">My Video … and play.php sends back video like this: <?php $CTYP= ‘video/mp4’; $VidPath = "../MyVideo.mp4"; header(‘Content-Type: ‘ . $CTYP); $VidFl = fopen($VidPath, "rb"); $VidContent = fread($VidFl, ..

Read more

I do have a form where the user can retrieve the data depending on the dates selected. Here’s what I have: <form class="form" method="post"> <div class="form-row"> <div class="form-group col-md-2 col-5"> <label class="col-form-label col-form-label-sm" for="From">From</label> <input type="date" class="form-control" id="fromDate" name="fromDate" value="<?php echo (new DateTime(‘first day of this month’))->format(‘Y-m-d’);?>"> </div> <div class="form-group col-md-2 col-5"> <label class="col-form-label col-form-label-sm" ..

Read more