I use the same php script for including and for loading ajax . These are some random catalog items that are loaded by a page and can be loaded using ajax. I need to use the header() function there only if it loads via ajax.
When I use the header function and the result is already running, I get a warning about this php. How does php know that the output is already running? What is the best way to determine this, and not to call the header function?
Thanks.
php header
Saltalt
source share