When i am using
header(location: url);
in meddle or end of my php script or html
i am facing following problem
Header already sent.
while when i am using
header(location: url);
in the start of page it works fine,
Is there any redirect('url') function in php like asp or any other alternitive that i can redirect to a page instead of using header() function becuase it is not working when we call it from meddle of html page