For my webpage I want to integrate this script I found called "mailgust". It's closer to a whole program than a script, but whatever. It looks like this:
(don't try and register, smtp is broken, so it won't work)
anyways I want to put that whole script inside my webpage without editing the thing to pieces. I would rather somehow buffer the output and then put it through a regular expression and strip of <html><head></head><body> tags and then the </body></html> tags. Then I could just print out the whole thing as a string inside my own template page.
Note to sleipnir214:
I know how to do the regular expression, I just want help somehow loading the output of the whole program into a variable, or something...
(don't try and register, smtp is broken, so it won't work)
anyways I want to put that whole script inside my webpage without editing the thing to pieces. I would rather somehow buffer the output and then put it through a regular expression and strip of <html><head></head><body> tags and then the </body></html> tags. Then I could just print out the whole thing as a string inside my own template page.
Note to sleipnir214:
I know how to do the regular expression, I just want help somehow loading the output of the whole program into a variable, or something...