Why is O_RDWRfailed available when php4 uses session? _ PHP Tutorial

Source: Internet
Author: User
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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.