Hi Curt,
Thanks for replying.
> class SaveToFile {
> function open($file) {
> //open file...
> }
> function write($buf) {
> //write to file...
> }
> function close() {
> //close file
> }
> }
> $obSaveFile = new SaveToFile();
> $obSaveFile->open('/path/to/file.html');
> ob_start(array(&$obSaveFile, 'save'), 1024);
>
> /* do your stuff here */
>
> ob_end_flush();
> $obSaveFile->close();
Problem is, I have not really learnt classes as yet, I
know how to use them but I really have no idea as to
how to make them. Looking at your above code I see you
are calling open() and close() of the class but not
write() is that a mistake or just my lack of
understanding of classes? (No idea what this:
&$obSaveFile
means either)
Also I have heard that outbuffering can be quite
complicated, would you mind filling in your example a
bit more and I can make add to it and work from there?
Thanks,
Mag
=====
------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php