On Sun, 2006-02-19 at 21:29 +0000, Marian Briones wrote: > Hi gang > I'm trying to output HTML files with php. I have read that in order > to do this, I have to preface each line with something likes; > > fputs($filepointer, "the line that I want"); > > This is painful. I want it to just spit out text that is already in > paragraphs and junk with all of the HTML Code. > > Is there a way to do it the same way I predeclare printing with > print <<<ENDTAG > yadda > ENDTAG; > > How can I do something like that only I am printing to create a file > without fputs for each $#!! line? > > Thanks in advance, I know the answers are out htere.
There's probably a better way to do what you want than this, but have you considered creating a function that takes a string and fputs it to $filepointer? I'm sorry I don't know the syntax in PHP, but I used to do something similar in Java when I got tired of typing System.out.println... Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
