Php.ini configuration

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

User avatar
wmdrumaizi
New php-forum User
New php-forum User
Posts: 40
Joined: Thu Jan 23, 2003 5:15 pm
Location: Malaysia
Contact:

Php.ini configuration

Postby wmdrumaizi » Fri Apr 25, 2003 9:30 pm

Hi, I'm a php newbie; looking for help to configure php.ini.

1) In which directory I should save the php.ini file?

2) session.save_path = 'directory'
In which directory this parameter should be set to? Default is /tmp?

3) session.auto_start = 0
How to enable it?

When I run this code

Code: Select all

<?php

session_start();

?>

<html>
<head>
<title>test Session</title>
<H2><b>Session testing</b></H2>
</head>
<body>

<?php

print "Your session ID: $PHPSESSID";

?>

</body>
</html>


I got this error
Warning: open(/tmp\sess_78335c30d114ce7cbb872e648754d241, O_RDWR) failed: m (2) in C:\apache\htdocs\session.php on line 3

Session testing
Your session ID:
Warning: open(/tmp\sess_78335c30d114ce7cbb872e648754d241, O_RDWR) failed: m (2) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

Hope someone can help me, thanks in advance

User avatar
Redcircle
Moderator
Moderator
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA
Contact:

Postby Redcircle » Tue Apr 29, 2003 3:02 am

1) In which directory I should save the php.ini file?

c:\windows or c:\winnt

2) session.save_path = 'directory'
In which directory this parameter should be set to? Default is /tmp?


create the directory c:\tmp

When I run this code


See answer to question 2

User avatar
WiZARD
Moderator
Moderator
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Re: Php.ini configuration

Postby WiZARD » Sun May 04, 2003 4:19 am

wmdrumaizi wrote:3) session.auto_start = 0
How to enable it?

For what? it's variable in php.ini mean what to you need automaticly start session and no matter use you session or not!


Return to “PHP Installation”

Who is online

Users browsing this forum: No registered users and 1 guest