Jump to content

luxe

Members
  • Posts

    14
  • Joined

  • Last visited

    Never

Posts posted by luxe

  1. 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...

  2. 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]

  3. 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?

     

     

  4. 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.