Greenguy's Board


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

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2007-03-28, 07:57 PM   #1
Doug E
Kids are great, Appu. You can teach them to hate the things you hate and they practically raise themselves now-a-days, you know, with the internet and all
 
Doug E's Avatar
 
Join Date: Mar 2005
Location: Canadeh
Posts: 197
Quote:
Not sure why people would want these anymore. It is much preferable to keep the indents/newlines if you ever need to do work on the page(s).
Its for a fussy script that doesn't like blank spaces between tags. Actually, 2 scripts, both unrelated so I assume there are more out there like this.

I ended up doing it all by hand last night with end delete end delete..., a very boring 1.5 hours.

Ill try those suggestions tonight and see which works for next time...
__________________
Asian Porn | Sora Aoi | Natt Kesarin

Last edited by Doug E; 2007-03-28 at 08:00 PM..
Doug E is offline   Reply With Quote
Old 2007-04-02, 01:25 AM   #2
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
Reply

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 07:45 PM.


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