Page 1 of 1
Hidding Output of an Included File
Posted: Sat Jul 29, 2006 10:30 am
by tecktalkcm0391
Is there someway to hide or not print the output of an include file? I have this already:
Code: Select all
print('<!--');
include("include.php");
print('-->');
Which still prints it output in the HTML but puts it in a comment. But I want to make it so that PHP doesn't even print/echo out anything so I can remove the to prints
Posted: Sat Jul 29, 2006 10:48 am
by volka
Posted: Sat Jul 29, 2006 10:51 am
by Chris Corbyn
Whooaaa.... I was beginning to wonder if you actually existed or not

Hello

Posted: Sat Jul 29, 2006 10:51 am
by tecktalkcm0391
OK i know how to use ob_start but not in this way, can someone explain how to do this or something... i'll keep reading and stuff but anyone that wants to help do so. THANKS!
Posted: Sat Jul 29, 2006 11:02 am
by volka
The "surrounding" script starts a buffer.
The included script's output is put into this buffer.
The "surrounding" script
Get's you nowhere if the included script flushes the buffer itself, but maybe it's sufficient.
d11wtq wrote:Whooaaa.... I was beginning to wonder if you actually existed or not
the time for the next incarnation has come.
So this makes me the third(?) volka?

Posted: Sat Jul 29, 2006 11:13 am
by JayBird
Whoa....from out of nowhere, he returns!!
Welcome back

Posted: Sat Jul 29, 2006 12:38 pm
by tecktalkcm0391
volka wrote:The "surrounding" script starts a buffer.
The included script's output is put into this buffer.
The "surrounding" script
Get's you nowhere if the included script flushes the buffer itself, but maybe it's sufficient.
d11wtq wrote:Whooaaa.... I was beginning to wonder if you actually existed or not
the time for the next incarnation has come.
So this makes me the third(?) volka?

Thanks! It worked.
Posted: Sun Jul 30, 2006 11:03 am
by m3mn0n
volka!! heya!