Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6649145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:44:21+00:00 2026-05-26T00:44:21+00:00

I have to decode the binary content data of one of my Chrome cache

  • 0

I have to decode the binary content data of one of my Chrome cache files which I name cache.log. The way I am trying to decode it is by using a php script I found here

http://www.frozax.com/blog/2011/05/recover-file-google-chrome-cache-gzipped/

I have installed php with the following command already

sudo apt-get install php5 libapache2-mod-php5
sudo apt-get install php5-cgi

When I try to run the index1.php script I get the following in Terminal

s3z@s3z-laptop:~/Desktop$ php index1.php 
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
// 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;

As you can see, all it is doing is echoing the script.

How do I actually run the script?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T00:44:21+00:00Added an answer on May 26, 2026 at 12:44 am

    It doesn’t look like the code is wrapped in:

    <?php 
    
    ?> 
    

    If it doesn’t have that, it will just echo instead of executing. The reason for this is that PHP lets you mix server scripting and HTML in the same file.

    <html>
        <head><title></title></head>
        <body>
        <?php 
            //Inside the php block so it gets executed and prints 'Hello World'
            echo "Hello, World!"; 
        ?>
        <!--Outside the php block so it just gets echoed and prints 'echo "Hello, World!";' -->
        echo "Hello, World!"; 
        </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Python (3.1 or 2.6), I'm trying to read data from binary data files
I have an function which decodes the encoded base64 data in binary data but
I have some files that are uuencoded, and I need to decode them, using
I have been working on a json decode issue (which I have already had
I have the string which that encoded in quoted-printable . How do I decode
I have a Base64 encoded String that contains PDF data. Using the EncdDecd unit
I am trying to figure out how to decode a legacy binary file that
I am trying to decode an hexed binary string in masm, at first I
I have a binary file which i want to embed directly into my source
I am trying to find a way to decode the REG_BINARY value for HKLM\Software\Microsoft\Ole\DefaultLaunchPermission

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.