Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 8th, 2003, 11:12 AM
Registered User
 
Join Date: Jun 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Empier4552
Default Help Sesssion Warnings!

Okay i get a bunch of warnings when i do a session. I am running apache 1.3.12 and the latest version of PHP 4

Warning; session_start(): open(/tmp\sesss_b43b33769ac723e58a2e6be59ea97366, O_RDWR)failed:No such file or direcctory (2) in c:\program files\apache group\htdocs\intelifish\login.php4 on line 2

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at c:\program files\apache group\apache\htdocs\intelifish\login.php4:2) in c:\program files\apache group\apache\htdocs\intelifish\login.php4 on line 2

and warnings continue on.

At the end of the page there is 2 more warnings

Warning: Unknown(): open(/tmp\sesss_b43b33769ac723e58a2e6be59ea97366, O_RDWR)failed:No such file or direcctory (2) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files), please verify that the current string of session.save_path is correct (/tmp) on line 0.

Can anyone help me with the problem!?

 
Old July 8th, 2003, 11:49 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yeah, PHP is trying to create a temporary file on your server to store the session data, but it can't.

Make sure the session save path directory specified in php.ini exists, and that the webserver/php user has permission to read/write in that directory.


Take care,

Nik
http://www.bigaction.org/





Similar Threads
Thread Thread Starter Forum Replies Last Post
TBH - Errors and warnings all of a sudden! codewife55 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 November 12th, 2006 06:58 PM
Warnings under ASP.NET 2.0 dw BOOK: Professional Crystal Reports for VS.NET 0 March 8th, 2006 03:46 PM
How to view warnings IronStar MySQL 1 May 1st, 2005 10:46 PM
how to off php notices and warnings knight Beginning PHP 2 February 3rd, 2005 03:34 PM
Set Warnings Teqlump Access VBA 4 October 27th, 2004 11:12 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.