Skip to content

Tag: php

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…

$_SESSION is echoing when it shouldn’t?

im doing a a basic form where the user enters data, it has three php pages, one with the html stuff, second one with the a class called registration, the third one is called validation.php it has the error handlers. if the user typed something wrong, i want to display an error on the same page, that’s w…