Question:

Why am I getting an error at the bottom of my PHP pages?

by  |  earlier

0 LIKES UnLike

At the bottom of my PHP pages I get an error. My PHP pages open as they should but I do not understand why I am getting an error at the bottom of the page, here is an example of on of the errors:

PHP Warning: Module 'mysql' already loaded in Unknown on line 0 PHP Warning: Module 'mysqli' already loaded in Unknown on line 0 PHP Warning: session_start() [function.session-start]: open(C:\PHP\session\sess_3lvhkk92ga7eii3... O_RDWR) failed: No such file or directory (2) in C:\Inetpub\wwwroot\Test\login.php on line 40 PHP Warning: Unknown: open(C:\PHP\session\sess_3lvhkk92ga7eii3... O_RDWR) failed: No such file or directory (2) 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:\PHP\session) in Unknown on line 0

 Tags:

   Report

2 ANSWERS


  1. It looks like there are several error messages here...

    First, you seem to be trying to open multiple connections to your database at once. You need to make sure that you are closing each connection to your database before you open a new one.

    Also, it seems that you have some includes that have faulty file references. It isn't able to find certain files that you are referencing...


  2. There seems to be multiple problems with your php installation. I think these are configuration errors in your php.ini:

    1) You are attempting to load the mysql and mysqli extension twice in php.ini

    - or -

    your php has built in support for mysql and mysqli and still you are trying to load the extension

    To solve: comment out the extension=php_mysql.dll and extension=php_mysqli.dll and check if mysql functions still work with your php installation

    2) session.save_path setting is incorrect or has restricted permissions.

    To solve: Verify

    (a) that the folder specified in the setting exist

    (b) if it exists and it is on a windows ntfs file system, check if IIS can write to this directory

    * Right-click > Properties > Security

    * IUSR_<MACHINENAME> should have read data, write data, delete and related settings "ALLOWED"

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.