Warning: open(/tmp\sess_cdd6b6e09f51738ad553a00e0bfa73a1, O_RDWR) failed: m (2) in c:\phpdev\www\cms\index.php on line 5
These are the 2 lines I've used:
session_register("myVar");
$myVar = 0;
What am I doing wrong here
Moderator: General Moderators
Code: Select all
<?
session_start();
session_register("myVar");
$myVar = 0;
?>Code: Select all
session.auto_start = 1Code: Select all
open(/tmp\sess_cdd6b6e09f51738ad553a00e0bfa73a1, O_RDWR) failed: m (2) in c:\phpdev\www\cms\index.php on line 5Code: Select all
; Argument passed to save_handler. In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
session.save_path = /tmpCode: Select all
session.save_path = c:\session_temp_folderCode: Select all
error_reporting = E_ALLThink about what happens if someone calls your logon.php like this:
logon.php?authent=1
Code: Select all
; This directive describes the order in which PHP registers GET, POST, Cookie,
; Environment and Built-in variables (G, P, C, E & S respectively, often
; referred to as EGPCS or GPC). Registration is done from left to right, newer
; values override older values.
variables_order = "EGPCS"
; Whether or not to register the EGPCS variables as global variables. You may
; want to turn this off if you don't want to clutter your scripts' global scope
; with user data. This makes most sense when coupled with track_vars - in which
; case you can access all of the GPC variables through the $HTTP_*_VARSї],
; variables.
;
; You should do your best to write your scripts so that they do not require
; register_globals to be on; Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
register_globals = OffCode: Select all
$_SESSIONї'authent']Which one should I modify? Is this right?!?!C:\phpdev\php\php.ini
C:\WINXT\php.ini
Code: Select all
#
Copy your choosen ini file (see below) to your '%WINDOWS%' directory on Windows 9x/Me or to your '%SYSTEMROOT%' directory under Windows NT/2000/XP and rename it to php.ini. Your '%WINDOWS%' or '%SYSTEMROOT%' directory is typically:
c:\windows for Windows 9x/ME/XP
c:\winnt or c:\winnt40 for NT/2000 servers
There are two ini files distributed in the zip file, php.ini-dist and php.ini-optimized. We advise you to use php.ini-optimized, because we optimized the default settings in this file for performance, and security. The best is to study all the ini settings and set every element manually yourself. If you would like to achive the best security, then this is the way for you, although PHP works fine with these default ini files.
#