Backend Development

Php error. With Nstresser code

Submitted by p0is0n3nvy, , Thread ID: 116229

Thread Closed
10-01-2019, 06:58 AM
#1
Ive linked my DB and built the database, I can create a user but when I log in. I get this? Any ideas how to fix it.

Warning: Cannot modify header information - headers already sent by (output started at /customers/2/2/9/peachsparadise.com/httpd.www/hub/index.php:6) in /customers/2/2/9/peachsparadise.com/httpd.www/hub/@/header.php on line 11

Now the only thing on line 11 is Header(location: hub/login.php);

Pms welcome. I wanna get this working
[Image: 14shzfd.png]

RE: Php error. With Nstresser code

This post was last modified: 10-01-2019, 10:34 AM by SkyCod
#2
You may have left blank spacesbeforeorafter (at the end of file after ?> )i.e.

Code:
THERE SHOULD BE NO BLANK SPACES HERE
<?php

  echo "your code here";

?>
DO CHECK FOR BLANK SPACES HERE AS WELL; THIS LINE (blank line) SHOULD NOT EXIST.

RE: Php error. With Nstresser code

OP
#3
Could you PM me please?

Im bit of a noob and still cant get to the bottom of it
[Image: 14shzfd.png]

RE: Php error. With Nstresser code

#4
Thanks man! Great upload, I was loking for some social media platforms

RE: Php error. With Nstresser code

#5
Look's very nice, will I look at site without registration?

RE: Php error. With Nstresser code

#6
10-01-2019, 06:58 AM
yoyp thank Wrote:
Ive linked my DB and built the database, I can create a user but when I log in. I get this? Any ideas how to fix it.

Warning: Cannot modify header information - headers already sent by (output started at /customers/2/2/9/peachsparadise.com/httpd.www/hub/index.php:6) in /customers/2/2/9/peachsparadise.com/httpd.www/hub/@/header.php on line 11

Now the only thing on line 11 is Header(location: hub/login.php);

Pms welcome. I wanna get this working

RE: Php error. With Nstresser code

#7
Issues like this are easy to resolve. Should only take a matter of minutes, look through the DB file again.

RE: Php error. With Nstresser code

#8
Check line 6, seems to be a matter of a typo in this case.

Users browsing this thread: 2 Guest(s)