Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

integrating other peoples scripts 1

Status
Not open for further replies.

esromneb

Programmer
Joined
Mar 30, 2002
Messages
76
Location
US
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...
 
You could probably play with PHP's output control functions to capture output and edit it on the fly. But output control eats server resources.

I'd just edit the hell out of the app and include what I needed in my code.

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Thanks, your solutions are always the best.
-ben
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top