This is my code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Dev-PHP 1.3.0">
<title>Document Title</title>
</head>
<body>
<?php
session_start();
echo "<form method=post action=$PHP_SELF>
<input type=text name=var size=5><br>
<input type=submit name=submit value=submit>
</form>";
if($POST['submit'])
{$SESSION['var']=$_POST['var'];}
?>
</body>
</html>
I try to use sessions and the problem is below :
Cannot send session cookie - headers already sent by (output started at C:\phpdev\www\tests\~out.php:9
Cannot send session cache limiter - headers already sent (output started at C:\phpdev\www\tests\~out.php:9)
open(/tmp\sess_fb0370e88cd8ebd74c5f77d16c6d1f9e, O_RDWR) failed: No such file or directory (2)
open(/tmp\sess_fb0370e88cd8ebd74c5f77d16c6d1f9e, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
What is going on? Could you help me?