I have function that has :
ob_start();
//Include of some files
$content = ob_get_contents();
ob_end_clean();
Now in those includes is another function that uses the same code, and they seem to conflict. Is it possible to use them like this?
I have function that has :
ob_start();
//Include of some files
$content = ob_get_contents();
ob_end_clean();
Now in those includes is another function that uses the same code, and they seem to conflict. Is it possible to use them like this?
Michal Čihař
On
Output buffering should be stackable, you just need to match ob_start with ob_end_clean. See http://php.net/ob_start
Copyright © 2021 Jogjafile Inc.
Try using output buffer like this :
Use this in all of your includes, and you will not get any errors