Zubrag.com
October 21, 2018, 06:13:08 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Error with PHP  (Read 3188 times)
acpmadness
Newbie
*
Posts: 1


« on: September 27, 2010, 12:25:40 PM »

I used this script:

http://www.zubrag.com/forum/index.php/topic,45.0.html

and it worked great, but I get an error called: "Warning: Cannot modify header information - headers already sent by (output started at /home/bcpsdvtm/public_html/employee.php:1) in /home/bcpsdvtm/public_html/password_protect.php  on line 138"

Does anyone know how to fix this?

Thanks.

Logged
zubrag
Administrator
Hero Member
*****
Posts: 788


WWW
« Reply #1 on: September 28, 2010, 02:12:22 AM »

Most likely employee.php has some text/whitespace on line 1 before password protector. Some editors add invisible whitespace. To fix, download free Notepad++ from http://notepad-plus-plus.org, open employee.php in it, select menu->Encoding->Convert to UTF-8 without BOM and save
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC