Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP warning - Cannot modify header information - headers already sent by... #1

Open
alexh225 opened this issue May 3, 2019 · 1 comment

Comments

@alexh225
Copy link

alexh225 commented May 3, 2019

Hi, thank you very much for the tutorial on youtube and the code.
I just tried it out and when I create or update the users, I get a PHP warning like:
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/..../crud/partials/header.php:1) in /www/htdocs/..../crud/create.php on line 32

I tried out typical solutions / tips on the net, but without any success.
Do you have any idea?

Best regards!
Alex

@ghost
Copy link

ghost commented Aug 4, 2020

In create.php / delete.php / update.php
After the opening PHP tag, add...
ob_start();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant