Ok guys....Im trying to upload a login onto my client's webhost readyhosting...and they require the following session config:
session_save_path("your home directory path"/cgi-bin/tmp);
session_start();
Log into the PHP Scripting page for actual path to your home directory. Replace "your home directory path" with the path shown.
Set session_save_path to a directory within your cgi-bin: either /cgi-bin/tmp as in the example above or another directory as long as the absolute path is correct. I do have the home directory path as well.
I currently have this as code
<?php
if (!isset($_SESSION)) {
session_start();
}
$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($_GET['accesscheck'])) {
$_SESSION['PrevUrl'] = $_GET['accesscheck'];
}
if (isset($_POST['username'])) {
$loginUsername=$_POST['username'];
$password=$_POST['pwd'];
$MM_fldUserAuthorization = "";
$MM_redirectLoginSuccess = "index2.php";
$MM_redirectLoginFailed = "index.php";
$MM_redirecttoReferrer = false;
mysql_select_db($database_arborConn, $arborConn);
$LoginRS__query=sprintf("SELECT user_name, user_pass FROM users WHERE user_name=%s AND user_pass=%s",
GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
$LoginRS = mysql_query($LoginRS__query, $arborConn) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = "";
When I do edit it according to the instructions, I get a syntax error. I can't simply change the php.ini file because they dont permit it, I've even tried htaccess to no avail. I got this working on another server... http://dconstruct.net/test.php the session_save_path is set to "no value" vs. "c:\php5\sessiondata" of the server that it isn't working on.
Please...help....so tired...