Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

using the login and authentication wizard through Dreamweaver 8

Guest
Apr 27, 2007 Apr 27, 2007

Copy link to clipboard

Copied

can anybody tell me what these error messages are? I have that logon.php file in that directory. I am not sure what these messages mean?
when page loads I get these.......

Warning: open(/tmp\sess_df7e67aa92cb740cee4bce1b9ac58406, O_RDWR) failed: No such file or directory (2) in c:\phpdev5\www\user_logon.php on line 5

Warning: open(/tmp\sess_df7e67aa92cb740cee4bce1b9ac58406, O_RDWR) failed: No such file or directory (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

when I hit submit I receive this message....

Warning: Cannot add header information - headers already sent by (output started at c:\phpdev5\www\user_logon.php:5) in c:\phpdev5\www\user_logon.php on line 40
TOPICS
Server side applications

Views

750
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Apr 27, 2007 Apr 27, 2007
cpltek wrote:
> can anybody tell me what these error messages are? I have that logon.php file
> in that directory. I am not sure what these messages mean?
>
> Warning: open(/tmp\sess_df7e67aa92cb740cee4bce1b9ac58406, O_RDWR) failed: No
> such file or directory (2) in c:\phpdev5\www\user_logon.php on line 5

They are PHP error messages telling you that you haven't configured PHP
correctly. You need to edit php.ini and change the value of
session.save_path from /tmp to C:\WINDOWS\Temp.

Save ...

Votes

Translate
LEGEND ,
Apr 27, 2007 Apr 27, 2007

Copy link to clipboard

Copied

cpltek wrote:
> can anybody tell me what these error messages are? I have that logon.php file
> in that directory. I am not sure what these messages mean?
>
> Warning: open(/tmp\sess_df7e67aa92cb740cee4bce1b9ac58406, O_RDWR) failed: No
> such file or directory (2) in c:\phpdev5\www\user_logon.php on line 5

They are PHP error messages telling you that you haven't configured PHP
correctly. You need to edit php.ini and change the value of
session.save_path from /tmp to C:\WINDOWS\Temp.

Save php.ini and restart your web server.

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 27, 2007 Apr 27, 2007

Copy link to clipboard

Copied

thanks. I tried it that and it still didn't work.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 27, 2007 Apr 27, 2007

Copy link to clipboard

Copied

cpltek wrote:
> thanks. I tried it that and it still didn't work.

If you want anybody to help you with your problem, you need to be far
more specific in saying what happened.

Run phpinfo() and scroll down till you find the section marked
"session". Is session support enabled? If so, what is the value for
session.save_path? Does that folder exist on your system? If so, and
you're still having problems, is it set to read-only?

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 27, 2007 Apr 27, 2007

Copy link to clipboard

Copied

Thanks again. you are very helpful. The problem I think I had was I installed two different versions of apache services and my php.ini was referencing the wrong one because when i use the apache 1.... it works but with apache 2... it wasn't translating my php to html for me.

SO, I had found WAMP5 and installed this over my server and created a new root and it configured everything for me and it is working now.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 27, 2007 Apr 27, 2007

Copy link to clipboard

Copied

LATEST
cpltek wrote:
> Thanks again. you are very helpful. The problem I think I had was I installed
> two different versions of apache services and my php.ini was referencing the
> wrong one because when i use the apache 1.... it works but with apache 2... it
> wasn't translating my php to html for me.

Glad you've got it working. One of the big problems is that a lot of
people try to find "simple" solutions to the installation of PHP, and
end up with poorly implemented versions that conflict with each other.
Installation isn't difficult, but thrashing around in the dark often
digs deep holes that can be hard to get out of.

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 27, 2007 Apr 27, 2007

Copy link to clipboard

Copied

here is the code I am using..
<?php require_once('Connections/COnn2.php'); ?>
<?php
// *** Validate request to login to this site.
//////////when I delete this---if (!isset($_SESSION)) {
session_start();}-----it gets rid of the error messages but when I logon I go the registration page either and not the logon page,
/////////
$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($_GET['accesscheck'])) {
$_SESSION['PrevUrl'] = $_GET['accesscheck'];
}

if (isset($_POST['firstname'])) {
$loginUsername=$_POST['firstname'];
$password=$_POST['lastname'];
$MM_fldUserAuthorization = "";
$MM_redirectLoginSuccess = "User_login.html";
$MM_redirectLoginFailed = "registration.html";
$MM_redirecttoReferrer = false;
mysql_select_db($database_COnn2, $COnn2);

$LoginRS__query=sprintf("SELECT id, f_name FROM auth_users WHERE id='%s' AND f_name='%s'",
get_magic_quotes_gpc() ? $loginUsername : addslashes($loginUsername), get_magic_quotes_gpc() ? $password : addslashes($password));

$LoginRS = mysql_query($LoginRS__query, $COnn2) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = "";

//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;

if (isset($_SESSION['PrevUrl']) && false) {
$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
}
header("Location: " . $MM_redirectLoginSuccess );
}
else {
header("Location: ". $MM_redirectLoginFailed );
}
}
?>


any suggestions??

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines