I have an input.DAT file that is encrypted with aes-256-cbd method. I want to decrypt the file using php. When I execute the following command from command line, the file is decrypted successfully. But when I try to use php for decrypting the file using the method openssl_decrypt($data, AES_256_CBC, $encrypti…
PHP updating multiple elements of sub-array of MongoDB document
I have the following document structure. I am trying to update specific values inside the holes sub-array: Each holes Array element is an Object representing the score on a golf hole, with various properties (fields). I am trying to provide the ability to update the holeGross field ONLY for each score. On my …
Keeping array reference and adding something into that
In my very simple Laravel livewire component i have an array and when i try to add another data into that by clicking on a simple for example div i get fresh array with the last inserted data into that and i cant keep this array reference to append something data into that thanks in advance Answer If you̵…
Make denomination program using PHP
I have encountered below scenario: Input amount: 3897 Output: Description : Here I want to find out the length of a series numbers in a given input value (how many time a series number can be come in a given input number) Lets Break down the example to understand what I want : So I need to find out the
How do I select a value from different tables in Query Builder Laravel
So i’m trying to get “promo_type” value from mysql table to excel. However i need to use another table in order to get the value of this “promo_type”. So this is the main table booking, which contains the value of the promo code. Like shown below a user has a promo code of “…
How to get specific (unique code) word from string on php? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year. Improve this question I have text string like : [CLOSED][#SD_1623834126_001] lorem ipsum ? and que…
What are the ways of sending images to my server?
I’m mostly a PHP backend / HTML/CSS frontend developer, so I’ve always sent images to my server from the client using either form enctype: multipart/formdata or through a FormData object when uploading through ajax requests. After that I would receive the file in the $_FILES array. Lately I’…
How do I set up my server to work with PHP
I want to use PHP with a server that i’ve coded my self. (Not Apache etc) I guess I have to send the http request and some additional data from my server to php, but I dont know how to make that connection and how to format that message. I know I can run scripts with php.exe, the problem is
How to prevent a post request from changing a variable in the database
For example I have website where you can login and have points. You can earn points by playing a snake game that is created with p5.js, so every time you play the snake game you earn points depending …
Edit data from database using forms laravel
So I was planning to do a type of form to edit the user’s data. I am currently using laravel-8 and I am quite new to it. How do I edit the the data using forms and request can someone help out? I was …