Skip to content

Decrypt aes-256-cbc encoded file with iv = 0

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 …

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 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

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 …