473,385 Members | 1,707 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,385 software developers and data experts.

session_start() problem

session_start();
$_SESSION['visits']++;
print 'You have visited here '.$_SESSION['visits'].' times.';

returned:

Warning: session_start() [function.session-start]:
open(/tmp\sess_c8bf2007256f6e15a938c0254adb21e4, O_RDWR) failed: No
such file or directory (2) in C:\Program Files\Apache
Group\Apache2\htdocs\session.php on line 3

Warning: session_start() [function.session-start]: Cannot send session
cookie - headers already sent by (output started at C:\Program
Files\Apache Group\Apache2\htdocs\session.php:3) in C:\Program
Files\Apache Group\Apache2\htdocs\session.php on line 3

Warning: session_start() [function.session-start]: Cannot send session
cache limiter - headers already sent (output started at C:\Program
Files\Apache Group\Apache2\htdocs\session.php:3) in C:\Program
Files\Apache Group\Apache2\htdocs\session.php on line 3
You have visited here 1 times.
Warning: Unknown(): open(/tmp\sess_c8bf2007256f6e15a938c0254adb21e4,
O_RDWR) failed: No such file or directory (2) 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 /tmp folder inside my htdocs directory so why it is still
saying that the /tmp is unknown?
Jul 16 '05 #1
2 21680
sky2070 wrote:
session_start();
$_SESSION['visits']++;
print 'You have visited here '.$_SESSION['visits'].' times.';

returned:

Warning: session_start() [function.session-start]:
open(/tmp\sess_c8bf2007256f6e15a938c0254adb21e4, O_RDWR) failed: No
such file or directory (2) in C:\Program Files\Apache
Group\Apache2\htdocs\session.php on line 3

i have /tmp folder inside my htdocs directory so why it is still
saying that the /tmp is unknown?


Not in htdocs. Php looks for 'tmp' folder in root, in your case - in 'c:\'.
You can change it in php.ini.

--
--- --- --- --- --- --- ---
ja**@croatiabiz.com
Jul 16 '05 #2
remember also that with windows you should only use the \ when navigating
directories. so it should be \tmp

it may also be looking for your /tmp folder in the php install folder. i
believe that's where mine sticks all it's tmp stuff...

"jack" <ja**@croatiabiz.com> wrote in message
news:be***********@as201.hinet.hr...
sky2070 wrote:
session_start();
$_SESSION['visits']++;
print 'You have visited here '.$_SESSION['visits'].' times.';

returned:

Warning: session_start() [function.session-start]:
open(/tmp\sess_c8bf2007256f6e15a938c0254adb21e4, O_RDWR) failed: No
such file or directory (2) in C:\Program Files\Apache
Group\Apache2\htdocs\session.php on line 3

i have /tmp folder inside my htdocs directory so why it is still
saying that the /tmp is unknown?
Not in htdocs. Php looks for 'tmp' folder in root, in your case - in

'c:\'. You can change it in php.ini.

--
--- --- --- --- --- --- ---
ja**@croatiabiz.com

Jul 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Florence HENRY | last post by:
Hello, I've searched about my problem on google before posting, but I didn't find anything relevant... I have a problem with session_start. Here is my code : <html> <head> <?php...
19
by: Chris Allen | last post by:
Hi I'm new to PHP and I'm trying to create a Login Form. Once the user has logged in then he shouldn't have to log in again. The trouble is I'm getting a new session ID between every page and so...
4
by: K. Choi | last post by:
I had installed php 4.3.7 on my system and test some php code. But there is a serious problem. On my system(using apache2) the code, <?php session_start(); ?> gets some warning, Warning:...
5
by: cowofchaos | last post by:
when I use the session_start() function at the top of my scripts I get 5 errors on the page If anyone can help please do this has been a problem for a while and I cannot do much more work on my...
3
by: Trogdor | last post by:
I set up a server on an AMD 650 machine running gentoo linux. I installed Apachie 2, MySQL 4.1 and PHP 4.3.11 I use another computer on my local net (192.168.0.x) to access the server as a...
5
by: Niklas Uhlin | last post by:
Someone please explain why Session_Start fires multiple times / retains SessionID values between sessions, when you open an ASP.NET page from MS Word. For details of the problem, see below: 1....
0
by: Jason Lehman | last post by:
When testing on my local machine, the session_start fires fine. I try storing a value to my database, creating a timestamped text file, and writing a line of text to a general log file. All of...
19
by: lawrence k | last post by:
How can I find out where my script is outputting to the screen for the first time? My error logs are full of stuff like this: PHP Warning: session_start(): Cannot send session cache...
4
by: three-eight-hotel | last post by:
I'm somewhat of a newbie to PHP coding, but have developed a site using the technology, and have been pleasantly surprised by the capabilities offered. I am more comfortable in the ASP world,...
2
by: jwhite68 | last post by:
The essence of my problem is this. 1. I login to my website with user/password. 2. I select any option, which effectively re-calls index2.php with some additional parameters, to control whats...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.