473,395 Members | 1,412 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Error and need help????

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
4 1924

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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Morten Gulbrandsen | last post by:
C:\mysql\bin>mysql -u elmasri -pnavathe company Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 29 to server version: 4.1.0-alpha-max-debug Type...
5
by: xuatla | last post by:
Hi, I encountered the following compile error of c++ and hope to get your help. test2.cpp: In member function `CTest CTest::operator+=(CTest&)': test2.cpp:79: error: no match for 'operator='...
4
by: Patrick Masson | last post by:
Hello, Our configuration : Apache 2.0.53 PHP 5.0.4 PC Windows 2000 MATLAB 6.1 We work on a consulting project in France which involves MATLAB Web server,
8
by: Steve | last post by:
I have several pairs of synchronized subforms in an application. I have a Delete button for each pair that uses the following code or similar to delete a record in the second subform: ...
9
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My...
40
by: vfunc | last post by:
I get an undefined reference error for a definition that clearly looks like it is in a .h file. So what can be the cause of an undefined reference error, when this .h file containing the...
10
by: deathtospam | last post by:
My employer is starting to take the first steps towards migrating its Classic ASP codebase to ASP.NET v2.0. We have a copy of our existing website on the new Windows Server 2003 R2 test server,...
9
by: Ecohouse | last post by:
I have a main form with two subforms. The first subform has the child link to the main form identity key. subform1 - Master Field: SK Child Field: TrainingMasterSK The second subform has a...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.