MadTechie Posted July 14, 2007 Share Posted July 14, 2007 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 Quote Link to comment Share on other sites More sharing options...
MadTechie Posted July 14, 2007 Author Share Posted July 14, 2007 never mind, solved it used ob_end_clean(); NOTE to self don't code then tired! Quote Link to comment Share on other sites More sharing options...
matto Posted July 14, 2007 Share Posted July 14, 2007 I think you will find it would have worked if you had of changed this: ob_clean; to this: ob_clean(); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.