Skip to content

Function from C# to PHP

I need to transform these encryption system developed in C# to PHP. These are the input data. Customer ID, JSON object transformed to string and a private key. codigoCliente: 1002 datos: {“…

How to add a line break in brackets and braces JSON PHP file?

I have the following code that generates data in json php: Obtaining the following result: But I need to be able to get a line break between the bracket and another line break for each brace, like this: As this json data output is shown, what changes should I use in my PHP JSON code to obtain the same result.

switch pages navigation bar php

I’m trying to link my pages so I can switch from when to another through navigation bar but it’s not working and keeps reloading none stop without a result. in my html nav bar : <div id="…

Add custom mimeType guesser in Laravel

I am trying to upload a file in .imed format. It is rare format and Laravel detect it as application/zip which is fine. But beside that Laravel saves my file as hash_name.zip When I try to get file …

How to use multiple whereBetween to sum two different record

I need to compare and sum data from two different date. Assuming i have 4 input dates Currently, my query only able to get one whereBetween date data as below Current Code Current result from startdate and enddate Example another result from compare_startdate and compare_enddate How to query another result fr…

html page screenshot to pdf using html2canvas and jspdf

I am trying to create a receipt or invoice to pdf by screenshot of a php page. I found a source code on youtube and tried it for myself, however, it is not saving or downloading any pdf. here is the code and i made it as short as possible to be able to recreate: in the youtube i watched,