hello everyone.
i have an annoying problem.
i have my website in localhost but when i upload it i encounter with these errors:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/parmissa/public_html/checklogin.php:1) in /home/parmissa/public_html/checklogin.php on line 15
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/parmissa/public_html/checklogin.php:1) in /home/parmissa/public_html/checklogin.php on line 15
Warning: Cannot modify header information - headers already sent by (output started at /home/parmissa/public_html/checklogin.php:1) in /home/parmissa/public_html/checklogin.php on line 35
i search in the internet but the solution could not help me.
please help. please help .please...
Warning: session_start() [function.session-start]: Cannot se
Moderator: General Moderators
Re: Warning: session_start() [function.session-start]: Canno
You need to start the session before ANY output is sent to the user. This generally means that you need to do this:
<?php session_start(); ?>
<html> ....
And not this:
<html>
....
<?php session_start(); ....
<?php session_start(); ?>
<html> ....
And not this:
<html>
....
<?php session_start(); ....
Re: Warning: session_start() [function.session-start]: Canno
i did but nothing.
i realized that i use unicode.utf-8
that's the problem. when i use unicdoe, "a “" will be sent to the beginning of the page . i have to use unicdoe but how can i remove "a “"?
please help
i realized that i use unicode.utf-8
that's the problem. when i use unicdoe, "a “" will be sent to the beginning of the page . i have to use unicdoe but how can i remove "a “"?
please help
Re: Warning: session_start() [function.session-start]: Canno
Set your text editor not to use a BOM, this will prevent the output before your session code.
Then, in order to tell the browser that what you send it is utf8, use this in the <header>: <meta http-equiv="Content-Type" content="text /html; charset=UTF-8" />
Then, in order to tell the browser that what you send it is utf8, use this in the <header>: <meta http-equiv="Content-Type" content="text /html; charset=UTF-8" />
Re: Warning: session_start() [function.session-start]: Canno
i did but my web page will be shown in question marks.
i need to use utf-8 and unicode because i have to build a website in Persian not English.
i need to use utf-8 and unicode because i have to build a website in Persian not English.
Re: Warning: session_start() [function.session-start]: Canno
Try it.Mordred wrote:Then, in order to tell the browser that what you send it is utf8, use this in the <header>: <meta http-equiv="Content-Type" content="text /html; charset=UTF-8" />