You have to update your seession-path in your php.ini (usually located in
%%systemroot%% eg windows) to a valid windows-path like c:\windows\temp

Jan

----- Original Message -----
From: "r" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 24, 2002 11:19 AM
Subject: (Newbie) Apachie->PHP->MySql


> Greetings all.
> A bit of history,
> I have a small.....no actually...TINY website. :-)
> I am using PHP and mySql there without any problems.
> But uploading and testing each PHP page/program was a pain in the
.........
> so i installed Apache,MySql and PHP on my WINDOWS 2000 machine for testing
> before going live,
> I'm pretty much still a virgin at using MySql/apache/PHP on my local
machine
> so would appreciate any help.
>
> Heres my problem,
> I am running a php page to connect to the database and return some values,
> but instead this is what i get.
>
>  *************************************************************************
> Warning: open(/tmp\sess_1d9c4fe5132dbb9af2e128200e2c069b, O_RDWR) failed:
No
> such file or directory (2) in d:\program files\apache
> group\apache\htdocs\advt\common.php on line 133
> **************************************************************************
>
> Since what i have in the php file is no secret here is the code from line
> 133
> (If you want to see the actual file/s,write to me and i'll mail it to you
as
> this list does not support attachments)
>
>
>
>  function verifyUser() ***************************This is line
> 118*************************
>  {
>   global $ADMIN_EMAIL;
>   session_start();
>   global $email, $passwd;
>   if( session_is_registered( "email" ) &&
> session_is_registered( "passwd" ) )
>   {
>    $result = mysql_query( "SELECT email, passwd FROM user WHERE
> email='$email' AND BINARY passwd='$passwd'" ) or error( "Login failed,
> please contact <a href=\"$ADMIN_EMAIL\">adminstrator</a>" );
>    if( mysql_num_rows( $result ) == 1 ) return true;
>   }
>   return false;
>  }
>  function verifyAdmin()
>  {
>   session_start();     ************************* <<<<<This is line
> 133>>>>>>>>>>>>> *************
>
>
>
> This is the error i am getting as i "login" via a username and password
> field.
> Scroll down to see the php code i am using. (There is nothing wrong with
the
> php code as i am using it "live" online without any problems for a
website)
>
>
****************************************************************************
> ****
> Warning: open(/tmp\sess_1d9c4fe5132dbb9af2e128200e2c069b, O_RDWR) failed:
No
> such file or directory (2) in d:\program files\apache
> group\apache\htdocs\advt\admin.php on line 13
>
> Warning: Cannot add header information - headers already sent by (output
> started at d:\program files\apache group\apache\htdocs\advt\admin.php:13)
in
> d:\program files\apache group\apache\htdocs\advt\admin.php on line 15
>
> Warning: open(/tmp\sess_1d9c4fe5132dbb9af2e128200e2c069b, 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
>
****************************************************************************
> ****
> First few lines of my php page (all common.php contains is the usernames
and
> passwords)
>
> <?php
>  require( "common.php" );
>  if( isset( $action ) )
>  {
>   if( $action == "login" )
>   {
>    $adminName = trim( $adminName );
>    $adminPasswd = trim( $adminPasswd );
>    if( $adminName == "" ) error( "Admin name required" );
>    if( $adminPasswd == "" ) error( "Admin password required" );
>    if( $adminName != $ADMIN_NAME ) error( "Invalid admin name" );
>    if( $adminPasswd != $ADMIN_PASS ) error( "Invalid password" );
>    session_register( "adminName" );
>    session_register( "adminPasswd" );
>    header( "Location: ./admin_menu.php" );
>   }
>   elseif( $action == "logout" )
>   {
>    session_start();
>    session_unregister( "adminName" );
>    session_unregister( "adminPasswd" );
>    displayHeader( "Admin Logout" );
>    echo "<p align=\"center\"><font size=\"4\">You have logout
> successfully!</font></p>\n";
>    echo "<p align=\"center\"><a href=\"index.php\"><b>Home</b></a></p>\n";
>    displayFooter();
>   }
>  }
>  else
>
>
>
>
>
> Thank you for reading this mail even if you cannot help me.
> ANY help appreciated.
> Cheers
> -Ryan.
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to