Why is O_RDWRfailed available when php4 uses session ?. In php (as the mainstream development language) 4, the session function can be said to be quite perfect. it fixes many bugs in previous versions and makes it easy to use them. Unlike session in asp, the session function in php (as the mainstream development language) 4 can be said to be quite perfect. it fixes many bugs in previous versions and is very convenient to use. Unlike session in asp, php (as the mainstream development language) 4 stores session values on the web server rather than the client. In general, it is in the mp Directory. if this directory does not exist, the following error will occur:
Warning: open (mpsess_3a1118cbf345a4950254946fc8e5935e, O_RDWR) failed: m (2)
You can add this directory to the php running Directory (as the mainstream development language.
You can also modify php (as the mainstream development language). in The INI file, under [session]: session. save_path =
You can also specify the path by adding session_save_path (""); to the running file.
Next, you can perform session operations such:
Session_save_path ("temp ");
Session_start ();
If (! Session_is_registered ($ asd )){
Session_register ("asd ");}
If (isset ($ asd) & $ asd! = ""){
Session_register ("asd ");}
If ($ pwd! = $ Asd) & ($ pwd! = "") {$ Asd = $ pwd ;}
?>
Save $ asd in the temp directory specified by the session and change the value of $ asd in the session through $ asd = $ pwd. The definition of a session can only be performed in advance. the use of session variables is not limited, but must be defined before use.
Http://www.bkjia.com/PHPjc/508874.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/508874.htmlTechArticlephp (as the mainstream development language) 4 in the session function can be said to be quite perfect, corrected the previous version of the many bugs, the application is also very convenient. Unlike session in asp...