Saturday, 21 November 2015

22_PHP_ob_start()

In Previous example we have learn about the header() function… But there is one problem in header() function… If we write any html code like for example

then it will give use the error message cannot modify header location … header already set.. Check out the image below


So to solve this error we use the ob_sart(), it turns on output buffering on.


Write this code on the first line


This function will not gives us any output on the page. But page output store in the BUFFER instead of header.



So to solve this error we use the ob_sart(), it turns on output buffering on.


Write this code on the first line


This function will not gives us any output on the page. But page output store in the BUFFER instead of header.


IMP :- CHANGE THE IF CONDITION TRUE AND FALSE TO CHECK THE OUTPUT ...


No comments:

Post a Comment