<?php
// begin the session
session_start();
// echo the session valuable
echo 'The value of sess is '.$_SESSION['sess'];
?>
I am new to php.
I am using php version 5.2 and Windows7.
I am not sure which encoding I should use to save a php file.
I am building a website with Chinese characters.
I have the above simple code to start with.
- If I save it as "UTF-8" encoding I get error
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\websites\page1.php:1) in C:\websites\page1.php on line 3
Setting value of sess
If I save it as "unicode" encoding I don't get the echo text on screen
If I save it as "ANSI" encoding I can't insert Chinese characters.
What should I do??