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 17th, 2011, 06:30 PM
Registered User
 
Join Date: Jul 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Warning: Invalid Argument (22) in Unknown

Hi,
I'm a novice to php, studying from the book, PHP6, Apache, MySQL Web Development. I'm in Chapter 2, trying to use sessions for the first time.

My problem is that I'm getting these warnings below the page:

Warning: Unknown: open(/C:\PHP\sessiondata\sess_ba35b17b147613e2a480673de5 45eaae, O_RDWR) failed: Invalid argument (22) in Unknown on line 0

Warning:Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/C:\PHP\sessiondata) in Unknown on line 0

I'm in Windows XP and running a local Apache server.

On viewing the source code, I can tell that the server is parsing the php, but the variable from one page is not getting transferred to the other page as it is supposed to.

I've recently edited my php.ini file session.save_path to point to a directory I created called "sessiondata" in the main PHP directory. I have also ensured that this directory can be read from and written to by the server by enabling the "Allow network users to change my files" option.

...not sure where to go from here. Any help would be much appreciated.
 
Old August 3rd, 2011, 05:20 PM
Authorized User
 
Join Date: Mar 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Do yourself and everyone else a favour. If you develop on Windows, use XAMPP - http://www.apachefriends.org/en/xampp.html.

Windows suck @ open source programming language. The only time you use Windows to develop is using their .NET and Microsoft technologies.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Invalid argument supplied for foreach() codejockey Beginning PHP 4 September 24th, 2010 03:40 AM
warning..fetch_array(): supplied argument is not a valid msman88 MySQL 1 March 6th, 2009 07:11 AM
Invalid Argument ppenn Access VBA 2 May 14th, 2007 10:11 AM
Invalid postback or callback argument everest ASP.NET 2.0 Professional 2 January 9th, 2007 08:28 AM
Invalid Argument.... baNTON Access VBA 4 April 27th, 2004 06:18 AM





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