frainbreeze
Technical User
hello
i receive this notice at the top of the page:
Notice: session_start(): ps_files_cleanup_dir: opendir(c:\windows\temp) failed: Invalid argument (22) in D:\WEBSiTES\ImageLibrary\adminedit.php on line 2
but the only thing on line 2 is session_start();
i only get this msg after the form is submitted to update a record in a mysql db. Not always either, only once in a while. if the user refreshes the page, it disappears.
this is for an internal image library/db where users can search for images, and only a few ppl can access certain pages to add/change/delete images & tags. the login/pass is really only in place to prevent users from accessing an admin page directly/bookmarking it and not having to login etc.
at the top of each admin page is:
and the login page is as follows:
does anyone know if there is a resolution for this? i've done some googling and the best i can find is heresay that it is a bug in php...
thanks for any help
annie
i receive this notice at the top of the page:
Notice: session_start(): ps_files_cleanup_dir: opendir(c:\windows\temp) failed: Invalid argument (22) in D:\WEBSiTES\ImageLibrary\adminedit.php on line 2
but the only thing on line 2 is session_start();
i only get this msg after the form is submitted to update a record in a mysql db. Not always either, only once in a while. if the user refreshes the page, it disappears.
this is for an internal image library/db where users can search for images, and only a few ppl can access certain pages to add/change/delete images & tags. the login/pass is really only in place to prevent users from accessing an admin page directly/bookmarking it and not having to login etc.
at the top of each admin page is:
Code:
<?php
session_start();
global $permission;
if ($permission=="yes") {
#then display page
}
else {
echo "You are not authorised to access this page";
}
and the login page is as follows:
Code:
ob_start();
session_start();
if (count ($HTTP_POST_VARS) == 0) {
#display the login form
}
else
{
$username=$HTTP_POST_VARS["username"];
$password=$HTTP_POST_VARS["password"];
if ($username=="admin" AND $password=="adminpassword")
{
$permission="yes";
}
else {
$permission="no";
}
$username=$HTTP_POST_VARS["username"];
session_register("permission");
session_register("username");
if ($permission=="yes") {
#display admin options
}
else {
echo "incorrect username or password";
}
does anyone know if there is a resolution for this? i've done some googling and the best i can find is heresay that it is a bug in php...
thanks for any help
annie