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

  • Home
  • SEARCH
  • 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 4333280
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:22:21+00:00 2026-05-21T10:22:21+00:00

I have a simple website in PHP. My website does not use any Data

  • 0

I have a simple website in PHP.

My website does not use any Data Source, just some simple PHP scripts to allow some basic functionality.

As for my understanding when a User request my website the PHP code generates the HTML code that will be read by their browser.

I need to make difficult (in some how obfuscate) the HTML generated, so if the user would save a HTML page the code would be difficult to modify and uneasy to interpreter.

My basic need are basically COMPRESSING the HTML:

  • Eliminate white space. So all code would be packed in few line. Making it in some how human unreadable
  • Encode the HTML (optional)

Because I have many pages in my website. I’m looking for an automatic solution so I can add some code in one place and have for the next moment all pages output as described above.

Any idea how to do it?

Thanks for your time.

  • 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-21T10:22:21+00:00Added an answer on May 21, 2026 at 10:22 am

    You can use eval function: http://php.net/manual/en/function.eval.php or output buffering: http://php.net/manual/en/book.outcontrol.php and than modify the result. But obfuscating HTML itself is pointless. There are many tools for code formating capable of reverting the code to human-friendly form.

    If you want the result to by hard to change, why don’t you output a PDF file?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am about to finish up my dynamic classifieds website (php) and have some
I've got a simple website using plain HTML/CSS to display and PHP/MySQL for data
I have a website that has an index.php, a few simple .html pages and
I have a simple website I'm testing. It's running on localhost and I can
I've got IIS7 installed and have a simple website at: c:/inetpub/wwwroot/testsite I can copy
We have a simple registration form for our website users where we only require
I have developed a simple mechanism for my mvc website to pull in html
I have the weirdest problem. I am implementing a simple gallery with a use
On my website users can keyword search and find desired results. (Just a simple
I have a PHP authentication system on my website using the $_SESSION variable. A

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.