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... Link to comment https://forums.phpfreaks.com/topic/78338-has-anyone-experienced-using-sessions-on-readyhosting/ Share on other sites More sharing options...
cooldude832 Posted November 22, 2007 Share Posted November 22, 2007 lets see this error Link to comment https://forums.phpfreaks.com/topic/78338-has-anyone-experienced-using-sessions-on-readyhosting/#findComment-396379 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. Link to comment https://forums.phpfreaks.com/topic/78338-has-anyone-experienced-using-sessions-on-readyhosting/#findComment-396382 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 Link to comment https://forums.phpfreaks.com/topic/78338-has-anyone-experienced-using-sessions-on-readyhosting/#findComment-396385 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... :'( Link to comment https://forums.phpfreaks.com/topic/78338-has-anyone-experienced-using-sessions-on-readyhosting/#findComment-396387 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 Link to comment https://forums.phpfreaks.com/topic/78338-has-anyone-experienced-using-sessions-on-readyhosting/#findComment-396392 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... Link to comment https://forums.phpfreaks.com/topic/78338-has-anyone-experienced-using-sessions-on-readyhosting/#findComment-396401 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. Link to comment https://forums.phpfreaks.com/topic/78338-has-anyone-experienced-using-sessions-on-readyhosting/#findComment-396403 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.