473,569 Members | 2,701 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 _383eaaaf47de15 d6e8ce2e65d8732 01e, O_RDWR) failed: Invalid argument (22) in W:\www\developm ent\Projects\Le arning Files\Book Project\movie1. php on line 3

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

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

Warning: Unknown(): open(:\tmp\sess _383eaaaf47de15 d6e8ce2e65d8732 01e, 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_pa th is correct (:\tmp) in Unknown on line 0

I have turned my register_global s 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 1933

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 _383eaaaf47de15 d6e8ce2e65d8732 01e, O_RDWR) failed: Invalid argument (22) in W:\www\developm ent\Projects\Le arning 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_pa th = d:\tmp

actually points to a real and writable directory.


I have turned my register_global s 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.goo glegroups.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 _383eaaaf47de15 d6e8ce2e65d8732 01e, O_RDWR) failed: Invalid
argument (22) in W:\www\developm ent\Projects\Le arning 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_pa th = d:\tmp

actually points to a real and writable directory.


I have turned my register_global s 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.....coul d 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.goo glegroups.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 _383eaaaf47de15 d6e8ce2e65d8732 01e, O_RDWR) failed: Invalid
argument (22) in W:\www\developm ent\Projects\Le arning 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_pa th = d:\tmp

actually points to a real and writable directory.


I have turned my register_global s 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.....coul d 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 permissionknowl edge.
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
1193
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 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> select database(); +------------+ | database() | +------------+
5
2129
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=' in '*this = CTest::operator+(CTest&)((+t2))' test2.cpp:49: error: candidates are: CTest CTest::operator=(CTest&) make: *** Error 1
4
3715
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
4042
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: DoCmd.SetWarnings False DoCmd.RunCommand acCmdDeleteRecord DoCmd.SetWarnings True End If ExitHere: Me!SubName.SetFocus
9
3189
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 questions are below... "David Good" wrote: > We have a network running both Win2k and Win2k3 webservers and our web sites > reside on a UNC network...
40
3181
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 definition has been included and the namespace has been declared. I blame engineers they are all ponsey zealots.
10
2139
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, and everything is running fine. However, when I create a simple "HelloWorld.aspx" file, then browse to the page from VS.NET 2005 on the same machine,...
9
9674
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 master-child link to the first subform. subform2 - Master Field: subTrainingModule.Form!TrainingModuleTopicSK Child Field: TrainingModuleTopicSK
2
19426
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 will be writing this article intended for those who are in the same level, or maybe lower, of my technical knowledge. I would be using layman's...
0
2897
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 will be writing this article intended for those who are in the same level, or maybe lower, of my technical knowledge. I would be using layman's...
0
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8120
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7968
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6283
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5512
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.