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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie - How do I parse PHP file to show HTML

Status
Not open for further replies.

fhahnel

Technical User
Jan 16, 2003
1
US
I'm updating two includes (both only have HTML code in them) in another php file. Can I 'parse' the HTML that this generates to write the HTML into another file?

Example

'update' file (this updates two the two php files] which sends the code to a 'preview' page.
'preview' page code needs to be inserted into an HTML email (and I need the 'preview' page code to be inserted between <<EOF in a sendmail file.

I hope this is a clear enough explanation
 
Instead of "echo"ing the contents of the updated files, insert the contents into a string variable, which you can then use in your email. If this answer doesn't work in your situation, then we probably need more info to help you - please give us an example of the statements you use in your main file to pull in the other two, so that we have something to work from for suggestions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top