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 217603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:40:22+00:00 2026-05-11T18:40:22+00:00

I want to convert a web pages which is heavily CSS styled is written

  • 0

I want to convert a web pages which is heavily CSS styled is written in PHP to static html so that I can embed it in an email.

I have managed to do this but for achieving this I had to convert the whole page into a string and then assign that string as email body. The layout of the page does not look as good as original as I have not been able embed CSS.

This approach has a few problems like if any changes have to be made to the layout of the page I have to redo the whole process for generating an embeddable page.

I want an easier way which will allow me to keep the original page editable in Dreamweaver visually.

  • 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-11T18:40:22+00:00Added an answer on May 11, 2026 at 6:40 pm

    You can use output buffers. If you have an html page, such as:

       <html>
          <head>
             <title>Blah</title>
          </head>
          <body>
            Some text here
          </body>
       </html>
    

    Then if you put, at the top of the html file:

    <?php ob_start(); ?>
    

    And right at the bottom, after the last tag, put:

    <?php 
       $string = ob_get_contents(); 
    
       //do whatever you need to do to the html, save it to a seperate file, email it, etc
    
       ob_flush();
    ?>
    

    What this basically means is that the $string variable will end up with the entire static html of the page, after it has been dynamically generated. You can then use that string in an email. Although really, html pages don’t work exactly the same in emails, so you may want to rethink the approach.

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

Sidebar

Related Questions

Possible Duplicate: Convert .doc to html in php I want to know how can
I'm not new to HTML, CSS, JS or PHP, I already made diff. web
I have a few HTML pages that I want to display in a Flex
I want to convert a number that is in PRTime format (a 64-bit integer
I have many aspx page includes in my web form. I want to convert
I am trying to make a program that can convert a series of manga
I want to convert TIF to an image type that is viewable in a
I want to have a feature for my website which can print the page
I want to store web pages in compressed text files (CSV). To achieve the
i want to convert an utf-8 encoded web page source code downloaded using InternetReadFile

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.