PHP Warning: fread(): Length parameter must be greater than 0 in setoptions.php on line 311 Error and Solution

The “PHP Warning: fread(): Length parameter must be greater than 0” error message is typically thrown when the fread() function in PHP is passed an argument of zero or a negative number as the length of data to be read from a file. The fread() function expects a positive integer as the length parameter, and … Read more

Linux AWS: Find And Delete All Files Securely So That No One Can Recover It Ever

To securely delete all files in Linux AWS, you can use the shred command. Shred overwrites the file contents multiple times, making it difficult to recover the data. To delete all files in a directory, you can use the following command: find /path/to/directory -type f -exec shred -uvz {} + This command finds all files … Read more

Ubuntu Linux Add Static Route

To add a static route in Ubuntu Linux, you need to edit the /etc/network/interfaces file and add a line to define the static route. For example, to add a static route for the network 192.168.1.0/24 via the gateway 192.168.2.1, you would add the following line to the /etc/network/interfaces file: up route add -net 192.168.1.0/24 gw … Read more