How to make a file encrypt and decrypt?

Answer Posted / prabhu

md5_file()...
example...



<?php
$filename = "test.txt";
$md5file = md5_file($filename);
echo $md5file;
?>

output:5d41402abc4b2a76b9719d911017c592

Is This Answer Correct ?    14 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does it mean when it says the csrf token is invalid?

492


Where sessions stored in PHP?

535


What is $globals php?

529


What the difference between the 'bitwise and' operator and the 'logical and' operator?

513


How to set a page as a home page in a php based site?

512






can we swap two different string using php for example:-- before swapping:-- 1 string :-hello friend, 2 string :-my dear, after swapping that strings will be: 1.hello dear, 2.my friend.

3060


What does $_ post mean in php?

589


Can we extend two classes in php?

517


Difference between mysql_connect and mysql_pconnect?

502


How can we calculate the similarity between two strings?

568


What is the difference between Split and Explode in PHP?

567


Explain what are the different errors in php?

541


What is encapsulation in oop php?

514


How can I prevent sql-injection in php?

582


How to get the ip address of the client?

8691