p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

beginning_php thread: Duplicate entry '/access_logger.php' for key 1


Message #1 on Mon, 28 Jan 2002 12:27:58
I am currently on chapter 13, "Manipulating Data in MySql using PHP".



Note! Original source code from your website is used here.



Configuration:



- Windows Xp Pro

- IIS

- PHP 4.1.1

- MySql 4.0.1





Problem 1:



Following problems occurs when I run access_logger.php file.



-------------



1062: Duplicate entry '/access_logger.php' for key 1



after appending



auto_prepend_file = C:\Inetpub\wwwroot\access_logger.php



into php.ini file in c:\windows\



as discussed on page 480.



-------------



Message #2 on Mon, 28 Jan 2002 21:23:55
I'm at exactly the same point in the book, and running the same 

configuration.



The problem seems to occur when the user is already logged in.  My guess 

is that you've previously run the auth_user.php script.  If you close 

your browser, re-open it and log in again, things should be fine.

  Return to Index