By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,865 Members | 1,304 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,865 IT Pros & Developers. It's quick & easy.

Error and need help????

P: n/a
I am learning how to program with PHP however in the middle of a tutorial I am receiving the following error messages:

Warning: session_start(): open(:\tmp\sess_383eaaaf47de15d6e8ce2e65d873201e, O_RDWR) failed: Invalid argument (22) in W:\www\development\Projects\Learning Files\Book Project\movie1.php on line 3

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at W:\www\development\Projects\Learning Files\Book Project\movie1.php:3) in W:\www\development\Projects\Learning Files\Book Project\movie1.php on line 3

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at W:\www\development\Projects\Learning Files\Book Project\movie1.php:3) in W:\www\development\Projects\Learning Files\Book Project\movie1.php on line 3

Warning: Unknown(): open(:\tmp\sess_383eaaaf47de15d6e8ce2e65d873201e, 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 (:\tmp) in Unknown on line 0

I have turned my register_globals to OFF, and no matter what I try it keeps giving me this error??? Can somone please help me out here??


--
"There are no such thing as problems, only opportunities to learn something new!"

Aug 29 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a

racin_vegas wrote:
I am learning how to program with PHP however in the middle of a tutorial I am receiving the following error messages:

Warning: session_start(): open(:\tmp\sess_383eaaaf47de15d6e8ce2e65d873201e, O_RDWR) failed: Invalid argument (22) in W:\www\development\Projects\Learning Files\Book Project\movie1.php on line 3

The only meaningful error is the above. All the rest are cause by that
one. This error seems to indicate that the directory that has been
defined in your php.ini file either does not exist or is not writable.
Check to make sure that the line in your php.ini file that reads
something like

session.save_path = d:\tmp

actually points to a real and writable directory.


I have turned my register_globals to OFF, and no matter what I try it keeps giving me this error??? Can somone please help me out here??


That has nothing to do with this error.
Ken

Aug 29 '05 #2

P: n/a
I did see in the config area that the folder is not "writeable" how can I
change it?? It does not give me an option and I am very new to the "local"
server setup thing

--
"There are no such thing as problems, only opportunities to learn something
new!"

Thomas "Tom" Bladecki
UOP Online Student
University of Phoenix Online
tb*******@email.uophx.edu
"Ken Robinson" <ke******@rbnsn.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...

racin_vegas wrote:
I am learning how to program with PHP however in the middle of a tutorial
I am receiving the following error messages:

Warning: session_start():
open(:\tmp\sess_383eaaaf47de15d6e8ce2e65d873201e, O_RDWR) failed: Invalid
argument (22) in W:\www\development\Projects\Learning Files\Book
Project\movie1.php on line 3


The only meaningful error is the above. All the rest are cause by that
one. This error seems to indicate that the directory that has been
defined in your php.ini file either does not exist or is not writable.
Check to make sure that the line in your php.ini file that reads
something like

session.save_path = d:\tmp

actually points to a real and writable directory.


I have turned my register_globals to OFF, and no matter what I try it
keeps giving me this error??? Can somone please help me out here??


That has nothing to do with this error.
Ken

Aug 29 '05 #3

P: n/a
I know that I can change the "read-only" check box on the properties of the
tmp folder but when I do it changes back to "read-only" after I close the
window.....could it have something to do with the fact the program uses a
"virtual" drive??

--
"There are no such thing as problems, only opportunities to learn something
new!"

"Ken Robinson" <ke******@rbnsn.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...

racin_vegas wrote:
I am learning how to program with PHP however in the middle of a tutorial
I am receiving the following error messages:

Warning: session_start():
open(:\tmp\sess_383eaaaf47de15d6e8ce2e65d873201e, O_RDWR) failed: Invalid
argument (22) in W:\www\development\Projects\Learning Files\Book
Project\movie1.php on line 3


The only meaningful error is the above. All the rest are cause by that
one. This error seems to indicate that the directory that has been
defined in your php.ini file either does not exist or is not writable.
Check to make sure that the line in your php.ini file that reads
something like

session.save_path = d:\tmp

actually points to a real and writable directory.


I have turned my register_globals to OFF, and no matter what I try it
keeps giving me this error??? Can somone please help me out here??


That has nothing to do with this error.
Ken

Aug 29 '05 #4

P: n/a
racin_vegas wrote:
I know that I can change the "read-only" check box on the properties of
the tmp folder but when I do it changes back to "read-only" after I close
the window.....could it have something to do with the fact the program
uses a "virtual" drive??


Hi,

Under *nix you need to make the folder writable for the user that runs PHP.
In most cases this is an user named 'apache' or 'nobody' or 'www-data'.

Next step is to make the directory where PHP stores the sessionfiles
WRITABLE (and readable) to that user.

You can do this is a few different ways:
- make the folder open for everybody
(This is ok during development, or when just learning)
chmod 777 path/to/your/folder
This is probably a bad idea if you start using the site for real.

- make the folder WRITABLE to the abovementioned user (apache, nobody,
www-data) by modifying the read/writepermission allright for the group (the
abovementioned user is in) or the user.

The same logic goes roughly for W$.

So brush up your permissionknowledge.
Google for it. :-)

Regards,
Erwin Moller
Aug 29 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.