Jump to content

luxe

Members
  • Posts

    14
  • Joined

  • Last visited

    Never

Everything posted by luxe

  1. 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.
  2. yeah, i know...but this is a client's host... :'(
  3. 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.
  4. 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...
  5. ok i have that path...but how do i modify their php.ini file? and thanks!
  6. c:\php5\sessiondata it says.... on the server its working on, the session save_path is "null"
  7. i figure its a sessions "save_path" problem... ?
  8. well forgive me im a noob..... but this is what it does on the server it's not working on. 1) I login with correct username and password. 2) Instead of taking me to the correct page after logging in, it acts as if it failed and gives me this URL value http://arboranimalhospital.com/admin/index.php?accesscheck=%2Fadmin%2Findex2.php Although it works locally, and on the other server using PHP5. I've attached my code. [attachment deleted by admin]
  9. well, the login works locally and on a server running PHP 5--just not on this other server running 4. So I don't think there's anything wrong with the code at all. It's the server. And here's the test page for it: http://arboranimalhospital.com/test.php Is there something that needs to be turned on in the php.ini ?
  10. Hey guys, This is not the first time I've made a login before. However, I made one for a site with its own user db, and it's not working on the server. It does however work locally, and on another completely different server I tested it on. This is the server that it's working on: http://dconstruct.net/test.php And this is the server that it's NOT working on: http://arboranimalhospital.com/test.php I know that they are versions 5 and 4 respectively, and locally I'm running PHP5...but I did change it back to 4 locally, and it still worked. Im suspecting its the culprit server.....? This is the URL value its giving me on that server "http://arboranimalhospital.com/admin/index.php?accesscheck=%2Fadmin%2Findex2.php" even when I put the correct username and password that being passed in my users database. Any suggestions?
  11. well, it doesn't give me a particular error code. I just know that when I have wrong syntax in a php page, it doesn't display anything in firefox. And I'm working on a mac with mamp.
  12. hi there, Thanks for taking your time on this. I changed the code, and it appears to have a syntax error and I can't figure out what it is.... I do understand what you did though!
  13. Hey guys, Im a total php beginner, so I decided to practice doing a sort of blog site with cms. The problem I am having specifically is that when I view the articles I've posted, I want to be able to sort them by category using a jump menu I created with the categories populated through the db. Attached are my files including an sql file for the two db's I've linked together. The file in question is located in admin/view_article.php and lines 66-69. I've been stumped on this thing for weeks, and if anyone can figure it out....I'd tell them they were awesome and kiss their ass for the next week or so. [attachment deleted by admin]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.