472,983 Members | 2,259 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,983 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 1908

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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.