Jump to content

Recommended Posts

Hello.

I have problem with PHP and SESSION.

Im trying to use it but I have always two errors when trying to do it:

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\AppServ\www\index.php:1) in C:\AppServ\www\index.php on line 2

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\AppServ\www\index.php:1) in C:\AppServ\www\index.php on line 2

 

Im using UTF-8 format file.

With ANSI,It's working - But then I can't write in Hebrew.

 

Help?

 

 

Yes, I tried to PUT THE SESSION START AT THE TOP OF THE PAGE.

 

Any ideas?

Link to comment
https://forums.phpfreaks.com/topic/193087-php-sesssion-help/
Share on other sites

If you saved the file as a UTF-8 encoded file without the BOM characters, it should have worked. You would need to attach the resulting file to a post so that someone could determine if the problem is with the file or somewhere else.

 

Best guess is that your editor does not correctly handle saving the a file without the BOM characters and you would need to use a different programming editor.

Link to comment
https://forums.phpfreaks.com/topic/193087-php-sesssion-help/#findComment-1017404
Share on other sites

If you saved the file as a UTF-8 encoded file without the BOM characters, it should have worked. You would need to attach the resulting file to a post so that someone could determine if the problem is with the file or somewhere else.

 

Best guess is that your editor does not correctly handle saving the a file without the BOM characters and you would need to use a different programming editor.

 

I tried NOTEPAD++ and DreamWeaver.

When Im saving as UTF-8 WITHOUT BOM in notepad++

I get my website language like this:

׳×׳—׳™׳׳™׳×

Instead of hebrew.

Link to comment
https://forums.phpfreaks.com/topic/193087-php-sesssion-help/#findComment-1017450
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.