Php problem on webhost server

I have a php user registration and login script that is working fine on my localhost, but when I run it on my 000webhost site, the login.php produces an error. Registration.php works fine, so no connect to database problems.
Error from login.php:
Warning: session_start(): Cannot start session when headers already sent in /storage/ssd1/139/9979139/public_html/reg/login.php on line 17

Line 17 in login.php:

This script works fine on my localhost server, as well as another web server. Why doesnt
it work here?

Any suggestions or solutions relating to the 000webhost servers from anyone?
Would be greatly appreciated

add php_value output_buffering 1 to your .htaccess file in the root directory.

You are a Genius!! That worked and solved the error. How in h___ did you know that?
Thanks so much

1 Like