#26717 [Opn->Bgs]: session not working !
| From: | eru@php.net | Date: | Thu, 25 Dec 2003 16:04:42 +0000 |
| Subject: | #26717 [Opn->Bgs]: session not working ! | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-52487@lists.php.net to get a copy of this message | ||
ID: 26717
Updated by: eru@php.net
Reported By: khalidanwar123 at yahoo dot com
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: win98
PHP Version: 4.3.2
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
.
Previous Comments:
------------------------------------------------------------------------
[2003-12-25 09:52:16] khalidanwar123 at yahoo dot com
Description:
------------
hi i'm new with php , help me to fix this bug , what changes should i
do in the php.ini file ?
Reproduce code:
---------------
///Running this ///
?php
session_register("view1count");
session_register("view2count");
session_register("view3count");
session_register("view4count");
?>
<?php
// page_count.php
if(!$view1count) $view1count = 0;
if(!$view2count) $view2count = 0;
if(!$view3count) $view3count = 0;
if(!$view4count) $view4count = 0;
echo"<html><head><title>Web page hit counter
</title></head><body>";
if($whichpage) {
echo"<b> You are currently on $whichpage </b><br><br>\n";
}
for($i=1; $i<=4; $i++){
if($whichpage == $i) {
echo "<b><href =\"$PHP_SELF?".SID."$whichpage=$i\">Page
$i</a></b>";
} else {
echo "<href =\"$PHP_SELF?".SID."$whichpage=$i\">Page
$i</a>";
}
echo ",which you have
chosen".$GLOBALS["view$(i)count"]."times<br>\n";
}
echo"\n\n<br><br>\n\n";
echo"</body></html>";
?>
Expected result:
----------------
expected result is simillar what i'm getting right now, but without
hyperlinks .
Actual result:
--------------
///Getting this///
instead of expected result.....
please help!!!
Warning: session_register():
open(/tmp\sess_09d5e4dfe90737f3a2a6a7af04830cce, O_RDWR) failed: No
such file or directory (2) in c:\phpweb\practice\page_count.php on line
2
Warning: session_register(): Cannot send session cookie - headers
already sent by (output started at c:\phpweb\practice\page_count.php:2)
in c:\phpweb\practice\page_count.php on line 2
Warning: session_register(): Cannot send session cache limiter -
headers already sent (output started at
c:\phpweb\practice\page_count.php:2) in
c:\phpweb\practice\page_count.php on line 2
Page 1,which you have chosentimes
Page 2,which you have chosentimes
Page 3,which you have chosentimes
Page 4,which you have chosentimes
Warning: Unknown(): open(/tmp\sess_09d5e4dfe90737f3a2a6a7af04830cce,
O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown(): Failed to write session data (files). Please verify
that the current setting of session.save_path is correct (/tmp) in
Unknown on line 0
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26717&edit=1