Warning: session_start () [function. Session-start]: open_basedir restriction in effect. File (F:/Windo

Source: Internet
Author: User

I haven't written logs for a long time, and I haven't written a system for PHP for some time.Code. Review possible problems:

 

Warning

: Session_start () [function. Session-start

]:
Open_basedir restriction in effect. File (F:/Windows/temp/) is not
Within the allowed path (s): (E:/foot/; E:/apmserv5.2.6/tmp/uploadtemp/;) inE:/foot/login. php

On Line4

Fatal Error

: Session_start () [<
Href = 'function. Session-start'> function. Session-start </a>]:
Failed to initialize storage module: files (Path:) inE:/foot/login. php

On Line4

 

This problem occurs after session_start () is enabled.

 

I read the following blog:

Http://topic.csdn.net/u/20091114/11/c3d69f26-51a6-48b2-9510-b613c53baee1.html? R = 61284075.

His final solution still cannot solve the problem, so I found the solution at http://iwj.me/study/257.html#, which I felt convenient,

Based on my actual experience, modifying the. ini file is prone to errors. This configuration file does not serve only oneProgram, So the consequences of modifying the configuration file

It may have a big impact. Pass

 

Ini_set
(
'Session. save_path'
,
Dirname
(
_ File __
)
.
'/../Dirname /'
)
;
You can get rid of issues that involve global variables. Relatively acceptable.

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.