luxe Posted November 22, 2007 Share Posted November 22, 2007 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... Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted November 22, 2007 Share Posted November 22, 2007 lets see this error Quote Link to comment Share on other sites More sharing options...
luxe Posted November 22, 2007 Author Share Posted November 22, 2007 i only know its a syntax error because I get a blank page, I dont think I can turn on error checking because I have no access to the php.ini file. I think that's why they want me to re-route the save_session_path in the first place. Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted November 22, 2007 Share Posted November 22, 2007 sounds like you need a new host if they can't do the config themselves. You can move error reporting up on a single page using the http://us2.php.net/manual/en/function.error-reporting.php should give u a better idea Quote Link to comment Share on other sites More sharing options...
luxe Posted November 22, 2007 Author Share Posted November 22, 2007 yeah, i know...but this is a client's host... :'( Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted November 22, 2007 Share Posted November 22, 2007 hmm you could do a work around using a secondary server, but odds are that won't get you very far, talk to the host if its erroring on a request made by them it shoul be fixed, otherwise turn up error reporting and try and get the error the only logical thing i can see is the folder you are attempting to write sessions to is not a writable folder Quote Link to comment Share on other sites More sharing options...
revraz Posted November 22, 2007 Share Posted November 22, 2007 Post the syntax error. 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. 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... Quote Link to comment Share on other sites More sharing options...
luxe Posted November 22, 2007 Author Share Posted November 22, 2007 ok thanks, I'll see what I can do here....but I've searched all night last night for any clues and nothing. Can't talk to the host...because I don't know the reseller's city of birth...haha... hasn't gotten back to me yet. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.