Greenguy's Board


Go Back   Greenguy's Board > I'm Looking For.......
Register FAQ Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 2007-04-02, 01:25 AM   #8
Whipple
Internet! Is that thing still around?
 
Join Date: Mar 2007
Posts: 9
Theres several ways you can do this, but I would just write a quick php script to spit out the html in a line and copy / paste it (If you wanted to have the script actually write to the file you could, but it's not that hard to copy paste )

PHP Code:
<?php

    $file 
file_get_contents("html.html");
    echo 
htmlentities($file);

?>
Just quick explanation.. file_get_contents() grabs all of the text in "html.html" file into a string (all in one line), next line just spits it out in the format you want. If you want something more elaborate you can look into the following functions:

str_replace()
fopen()
fread()
Whipple is offline   Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:49 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc