How to programmatically disable product in Magento ?

You can user product Api to load any specific product and change its status to disable

Read more

Cannot modify header information – “headers already sent” PHP error

one can resole this issue by removing extra space before php tag <?php Example

Fix “headers already sent” using

Read more