Jump to content

[SOLVED] Trying to understand PHP warning?


php blanco

Recommended Posts

Hello,

I recently installed PHP and MySQL.  After setting up a local IIS/CGI web server, I created a basic php user login page.  I tested the page and the following error appeared at the bottom.  Can anyone help me understand what I need to fix?

 

login PHP Warning: Module 'mysql' already loaded in Unknown on line 0 PHP Warning: Unknown: open(C:\DOCUME~1\sysop\LOCALS~1\Temp\php\session\sess_8kgbupgee2gcpi5iu625846025, O_RDWR) failed: Permission denied (13) in Unknown on line 0 PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\DOCUME~1\sysop\LOCALS~1\Temp\php\session) in Unknown on line 0

 

thanks,

blanco

Link to comment
Share on other sites

Not sure, I use PHP/MySQL on linux like it was meant to be.  Perhaps your error/warning settings in your php.ini file are set to high...does the login for work, but just displays an error at the bottom?

Link to comment
Share on other sites

your solution can be solved 2 ways:

 

1.  edit the php.ini file and change

session.use_cookies = 1

and

session.cookie_httponly = 1

 

This method is unsecure because it store session data on client machine

 

2. make a directory anywhere on your drive and set the session save path:

session.save_path = "that directory"

make sure everybody has the write permission on that directory.

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.