Jump to content

[SOLVED] ob_clean()


MadTechie

Recommended Posts

quick question..

 

test.php  (yes i know theirs no PHP code its just a test file)

<body>
Hello World
</body>

 

test2.php

<?php
ob_start();
include "test.php";
ob_clean;
echo "bye";
?>

 

 

i run test2.php and get

Hello World bye

 

but i expected just bye.

 

any ideas ?

 

i'll check for replies in the moring.. night all

Link to comment
https://forums.phpfreaks.com/topic/59889-solved-ob_clean/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.