Skip to content

PHP file processing, possible data corruption

I have a file composed of 3 rows. The first row is a string of data. The second is a number and the third is another number. There are two PHP scripts running at the same time. The first is writing data in the first and third rows. The second is writing data in the second row and is reading

Update() in Laravel does not seem to be working

I’m working with Laravel 5.8 to develop my project and I have this table which shows some data from the DB: As you can see there’s a link named Edit for editing these data, so when someone clicks on that, this method runs: I have also added this form for updating the data sent to the edit.blade.ph…

How to use OPENSSL_ZERO_PADDING in php?

I am trying to Use the Padding Mode: Zeros in AES-256-ECB encryption but when i use OPENSSL_ZERO_PADDING it does not return anything. this is the code : But when i use OPENSSL_RAW_DATA instead of OPENSSL_ZERO_PADDING it returns the encrypted string Why isnt the OPENSSL_ZERO_PADDING working ? how can i fix thi…