I am testing out some sessions on my home comp (Win98 with PHP4, MySQL, and Apache) I put in the following code:
And I get this error:Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head><title>New User</title></head> <body> <?php session_register ("count"); $count++; ?> Hello visitor, you have seen this page <? echo $count; ?> times.<p> <php? # the <?=SID?> is necessary to preserve the session id # in the case that the user has disabled cookies ?> To continue, <A HREF="nextpage.php?<?=SID?>">click here</A> </body> </html>
Warning: Cannot send session cookie - headers already sent by (output started at c:\phpdev\www\work\session.php:6) in
c:\phpdev\www\work\session.php on line 7
Warning: Cannot send session cache limiter - headers already sent by (output started at c:\phpdev\www\work\session.php:6)
in c:\phpdev\www\work\session.php on line 7
Warning: open(/tmp/sess_4723d19e4c4f908f32832f38655a32e3, O_RDWR) failed: m (2) in
c:\phpdev\www\work\session.php on line 7
Hello visitor, you have seen this page 1 times.
To continue, click here
Warning: open(/tmp/sess_4723d19e4c4f908f32832f38655a32e3, O_RDWR) failed: m (2) in Unknown on line 0
Warning: Failed to write session data. Please check that the current setting of session.save_path is correct (/tmp) in Unknown
on line 0
I went into the php.ini file and changed the save.path to (sessions)
Any suggestions??
Thanks,






Bookmarks