Home  • Programming • PHP

header("location:index.php") কাজ না করার কারন কি?

লোকাল সার্ভারে header() ফাংশন কাজ করে কিন্তু ওয়েব সার্ভারে কাজ করতাছে না এটার কারন কি এবং এর সমাধান কি?

Comments 4


Never use any white spaces or print anything before calling header() function. If you use header function in any php file, PHP processor never expect any output before header() function.
Careful of including php file to another file if included file is contained header() function.  File must not echo or output anything before include the file which contains header() function.
local server is also web server which is called localhost or local webserver
You just simple mistake. set         header("Location:index.php")

Share

About Author
Abdullah Al Mamun
Copyright © 2024. Powered by Intellect Software Ltd