rgb192
asked on
input: cache file. Output: readable file (maybe .html or .php)
http://www.frozax.com/blog/2011/05/recover-file-google-chrome-cache-gzipped/
I want to recover files from my chrome://cache
I think this php is for linux
and I have windows
I do not see .bin or .log files in my cache,
no files contain extension
// cache.log is a copy of chrome cache page with only the file content section
$cacheString = file_get_contents("cache.log");
$matches = array();
preg_match_all('/s[0-9a-f]{2}s/', $cacheString, $matches);
$f = fopen("t.bin","wb");
foreach ($matches[0] as $match)
{
fwrite($f,chr(hexdec($match)));
}
fclose($f);
ob_start();
readgzfile("t.bin");
$decoded_data=ob_get_clean();
echo $decoded_data;
I want to recover files from my chrome://cache
I think this php is for linux
and I have windows
I do not see .bin or .log files in my cache,
no files contain extension
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Did I make correct change to code?
ASKER
What change should I make?
Or what additional information should I provide?
Or what additional information should I provide?
ASKER
the answer provides guidance on how to ask the question again.
thanks
thanks
ASKER
Open in new window